diff --git a/ytch.user.js b/ytch.user.js index 2ba6969..b1165d0 100644 --- a/ytch.user.js +++ b/ytch.user.js @@ -7,7 +7,9 @@ // @homepage https://austenwares.com/gogs/stonewareslord/ytch // @include http://youtube.com/watch* // @include https://youtube.com/watch* -// @run-at document-start +// @include http://www.youtube.com/watch* +// @include https://www.youtube.com/watch* +// @run-at document-body // ==/UserScript== // Options @@ -23,7 +25,7 @@ var wordList = [ "Example third string (with quotes)", 'Example last string (no comma after tick)' ]; -function clearComments(words){ +function clearComments(){ comments = document.querySelectorAll('.comment-item>.content>.comment-text>.comment-text-content'); for (var i = 0; i < comments.length; i++) { for (var j = 0; j < wordList.length; j++) { @@ -37,4 +39,4 @@ function clearComments(words){ } } } -setInterval(clearComments(wordList), 1000); +setInterval(clearComments, 1000);