From 8d18437dfacaf86230a5c2765730be7c00fa2c8f Mon Sep 17 00:00:00 2001 From: Sneed Group Holder Date: Mon, 25 Nov 2024 14:02:23 -0600 Subject: [PATCH] add more adblocking, update itworks html --- .DS_Store | Bin 0 -> 6148 bytes itworks.html | 2 +- libbrowz.js | 5 +---- main.js | 10 +++++++++- 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..dfa7bf4cf91424ac409bdf1989d0cacb5a48dcd6 GIT binary patch literal 6148 zcmeHK%We}f6g@7HnkEsnl`648njat%e=tdtMWoV2`vH&_X~;B#l2o)^RI~3t@C$q& zD>(Ps0(&N*J5(V%vXAZYx!3o2#*P7)?#<*Ka0sBzELdx>*plSA;~tzq^~J%$-cq{*T_PT=CQZ!IVc#S1w%WF` zqGrH4;k&cs=qYuaQ^{-UBCD}b3${L{r8TZX{}N?j>FBSPwph@ZAH0|ww6MXQT}}EN zvt3$MjoRmMi7JU_wxoK~Vl1NqQGuwyZv|w3NSFmvhlNGmI#}oxfLLR`&ad)L~)K(qY`?!#K~z-B65rr~O2S!=x5t85M{MgbKW{ z%|ki=`@8S|At|<^0#SkgN&!>rUG};R$(^m0;N+}Lm_IU0l5vGarLb_vu~y_Le$A|j Z&l0H+Q-_5`_Atdi0xCl+q5}U^fnWdW67c{4 literal 0 HcmV?d00001 diff --git a/itworks.html b/itworks.html index cf5b687..40c9841 100644 --- a/itworks.html +++ b/itworks.html @@ -13,7 +13,7 @@

Welcome to Sneedium!

-

Welcome to the Sneedium Browser! We provide versions for macOS, Windows, and Linux as of the time of writing this. We hope you enjoy this browser as much as we did making it.

From all of us at Sneed Group. +

Welcome to the Sneedium Browser! You can easily compile for for macOS, Windows, and Linux as of the time of writing this. We hope you enjoy this browser as much as we did making it.

From all of us at Sneed Group.

diff --git a/libbrowz.js b/libbrowz.js index ea69466..c08a4b5 100644 --- a/libbrowz.js +++ b/libbrowz.js @@ -45,10 +45,7 @@ function go() { browserFrame = tabGroup.getActiveTab().webview let browser = tabGroup.getActiveTab() url = normalizeUrl(document.getElementById("txtUrl").value) - if (url.includes("youtube.com") || url.includes("youtu.be")) { - url = url.replaceAll("youtube.com", "invidious.nerdvpn.de") - url = url.replaceAll("youtu.be", "invidious.nerdvpn.de") - } else if (url.includes("google.com/search?q") || url.includes("google.com/?q")) { + if (url.includes("google.com/search?q") || url.includes("google.com/?q")) { // Define the URL object const serachUrlObj = new URL(url); //Get query from old url diff --git a/main.js b/main.js index a35574d..01939c3 100644 --- a/main.js +++ b/main.js @@ -34,12 +34,20 @@ proxy.listen(3129) let blocker = undefined async function enableGoodies(s) { blocker = await ElectronBlocker.fromLists(fetch, [ + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/ubol-filters.txt", 'https://easylist.to/easylist/easylist.txt', 'https://secure.fanboy.co.nz/fanboy-annoyance.txt', 'https://easylist.to/easylist/easyprivacy.txt', 'https://easylist-downloads.adblockplus.org/antiadblockfilters.txt', 'https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt', - 'https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/pro.plus.txt' + 'https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/adblock/pro.plus.txt', + "https://github.com/yokoffing/filterlists/raw/refs/heads/main/youtube_clear_view.txt", + "https://pgl.yoyo.org/as/serverlist.php?showintro=0;hostformat=adblock", + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/unbreak.txt", + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/quick-fixes.txt", + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/privacy.txt", + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/badware.txt", + "https://github.com/uBlockOrigin/uAssets/raw/refs/heads/master/filters/filters.txt" ]) blocker.enableBlockingInSession(s); }