Return false having no effect
Opened this issue · 0 comments
eriolloan commented
I wanted to apply filters only on the homepage using this kind of script (also attempted with RegEx, whitelisting urls...) :
(video, objectType) => {
// Filter only on homepage
if (window.location.href == "https://www.youtube.com/") {
return true
}
return false
}
before I realized this doesn't work either :
(video, objectType) => {
return false
}
So... what could cause this ?
edit: An interesting thing to note is that the first script results in the homepage (and only the homepage) displaying no videos at all.