Skip to content

Commit 77ad0a3

Browse files
committed
Remove husky, debug console.log
1 parent 620eb03 commit 77ad0a3

4 files changed

Lines changed: 1 addition & 15 deletions

File tree

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"dotenv": "^16.0.1",
8080
"eslint": "^8.17.0",
8181
"glob": "^8.0.3",
82-
"husky": "^8.0.1",
8382
"jest": "^28.1.0",
8483
"jest-environment-jsdom": "^28.1.0",
8584
"jest-environment-puppeteer": "^6.0.3",

pnpm-lock.yaml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scripts/content/youtube/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const youtube = async () => {
3030
const act = ev.detail.actionName;
3131
console.dev.debug(`yt action: ${act}`);
3232
if (![ 'yt-history-load', 'ytd-log-youthere-nav', 'yt-deactivate-miniplayer-action' ].includes(act) &&
33-
document.querySelector('.watch-on-nebula')) return;
33+
document.querySelector('.watch-on-nebula')) return;
3434
console.dev.log(`yt action triggered re-run: ${act}`);
3535
setTimeout(run, 1, true);
3636
});
@@ -69,7 +69,6 @@ const run = debounce((allowOpenTab: boolean) => {
6969
console.debug('got video information', '\nchannelID:', channelID, 'channelName:', channelName, 'videoTitle:', videoTitle, 'on nebula?', !!vid);
7070
if (!vid) return;
7171
console.dev.log('Found video:', vid);
72-
console.log(constructButton(vid));
7372
subscribeElement.before(constructButton(vid));
7473
const wrap = document.querySelector('ytd-watch-metadata');
7574
if (wrap) wrap.setAttribute('larger-item-wrap', ''); // make sure youtube displays two lines for space for the button

0 commit comments

Comments
 (0)