Browse Source

hide anything that contain "porn" in the url

master
loicbersier 6 months ago
parent
commit
e9d68a43a6
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/Controllers/Http/DownloadController.js

+ 4
- 0
app/Controllers/Http/DownloadController.js View File

@ -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