Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions networks/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ function do_yt_sub() {

state = _STATE_WAIT_TO_CLOSE;
wait_time = generateRandom(5, 8);

const buttons = document.querySelectorAll('.ytd-subscribe-button-renderer');
//The "Subscribe" button wasn't being clicked, so I changed the CSS selector from '.ytd-subscribe-button-renderer' to '.yt-spec-button-shape-next--filled > div:nth-child(1)', and now it's working perfectly
const buttons = document.querySelectorAll('.yt-spec-button-shape-next--filled > div:nth-child(1)');
if ((!buttons) || (buttons.length < 1)) {
console.log("No Subscribe button found :()");
return;
Expand Down Expand Up @@ -64,4 +64,4 @@ function do_youtube() {
do_yt_like();
return;
}
}
}