blocktube icon indicating copy to clipboard operation
blocktube copied to clipboard

Return false having no effect

Open eriolloan opened this issue 3 months ago • 0 comments

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.

eriolloan avatar May 09 '24 13:05 eriolloan