From 35235e508220362fc3c7dbed9b719b2fbcd7b8c6 Mon Sep 17 00:00:00 2001 From: webVerts Date: Sun, 1 Oct 2023 18:56:34 +0530 Subject: [PATCH] Add Sharechat filter Fixes #62 --- resources/filters.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/resources/filters.js b/resources/filters.js index e3f03c1..dfb0b1e 100644 --- a/resources/filters.js +++ b/resources/filters.js @@ -160,6 +160,14 @@ export function filtering(url, href, origin, hostname,protocol,pathname,search,d else{ link = hostname + '/'+ pathname.split('/')[1].toLowerCase();} var output= compare(link,href); return output + } + else if(hostname=="sharechat.com"){ + path1=pathname.split('/')[1].toLowerCase(); + if(path1=="about" || path1=="team" || path1=="news" || path1=="blogs"|| path1=="careers" ||path1=="about" || path1=="get-in-touch" || path1=="recharge"){ link=hostname; var output=compare(link,href); return output;} + if(path1=="item" || path1=="video" || path1=="buckets" || path1=="tag" || path1=="trending" || path1=="explore"){return `

Cannot identify these links. Please submit the user profile URL to verify.

`;} + else if(path1=="profile"){link=hostname+'/'+pathname.split('/')[2].toLowerCase(); var output=compare(link,link); return output;} + else{ link=hostname+'/'+pathname.split('/')[1] ; var output=compare(link,link); return output;} + } else if(origin == "https://ko-fi.com" || origin =="https://www.buymeacoffee.com" || origin=="https://liberapay.com" || origin =="https://opencollective.com") {