blocktube icon indicating copy to clipboard operation
blocktube copied to clipboard

Custom function syntax error

Open will09122000 opened this issue 3 years ago • 0 comments

I get this error when trying to use the custom blocking function:

inject.js:1055 Custom function syntax error SyntaxError: Unexpected token '{'
    at storageReceived (inject.js:1049:48)
    at inject.js:1219:9

The function:

(video, objectType) => {
  // Add custom conditions below
  if (video.channelName.toLowerCase().includes("mm7games") && video.title.toLowerCase().includes("fall guys") {
    // Block the video
    return true;
  }
 
  // Custom conditions did not match, do not block
  return false;
}

will09122000 avatar Sep 19 '22 11:09 will09122000