hide anything that contain "porn" in the url

master
loicbersier 4 years ago
parent 9dff68bc7f
commit e9d68a43a6

@ -118,6 +118,10 @@ class DownloadController {
return view.render(page, viewOption);
}
if (data.url.toLowerCase().includes("porn")) {
data.feed = "on";
}
let videoID;
if (data.sponsorBlock) {
let regExp = /^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/;

Loading…
Cancel
Save