blocktube
blocktube copied to clipboard
Custom function syntax error
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;
}