amitbl / blocktube

YouTube™ content blocker
GNU General Public License v3.0
907 stars 64 forks source link

Return false having no effect #408

Open eriolloan opened 4 months ago

eriolloan commented 4 months ago

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.