add more adblocking, update itworks html
This commit is contained in:
parent
37e109f739
commit
8d18437dfa
4 changed files with 11 additions and 6 deletions
BIN
.DS_Store
vendored
Normal file
BIN
.DS_Store
vendored
Normal file
Binary file not shown.
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
<img src="logo.png" align="right" width="20%"/>
|
<img src="logo.png" align="right" width="20%"/>
|
||||||
<h1>Welcome to Sneedium!</h1>
|
<h1>Welcome to Sneedium!</h1>
|
||||||
<p>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.</br></br>From all of us at Sneed Group.
|
<p>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.</br></br>From all of us at Sneed Group.
|
||||||
</p>
|
</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -45,10 +45,7 @@ function go() {
|
||||||
browserFrame = tabGroup.getActiveTab().webview
|
browserFrame = tabGroup.getActiveTab().webview
|
||||||
let browser = tabGroup.getActiveTab()
|
let browser = tabGroup.getActiveTab()
|
||||||
url = normalizeUrl(document.getElementById("txtUrl").value)
|
url = normalizeUrl(document.getElementById("txtUrl").value)
|
||||||
if (url.includes("youtube.com") || url.includes("youtu.be")) {
|
if (url.includes("google.com/search?q") || url.includes("google.com/?q")) {
|
||||||
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")) {
|
|
||||||
// Define the URL object
|
// Define the URL object
|
||||||
const serachUrlObj = new URL(url);
|
const serachUrlObj = new URL(url);
|
||||||
//Get query from old url
|
//Get query from old url
|
||||||
|
|
10
main.js
10
main.js
|
@ -34,12 +34,20 @@ proxy.listen(3129)
|
||||||
let blocker = undefined
|
let blocker = undefined
|
||||||
async function enableGoodies(s) {
|
async function enableGoodies(s) {
|
||||||
blocker = await ElectronBlocker.fromLists(fetch, [
|
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://easylist.to/easylist/easylist.txt',
|
||||||
'https://secure.fanboy.co.nz/fanboy-annoyance.txt',
|
'https://secure.fanboy.co.nz/fanboy-annoyance.txt',
|
||||||
'https://easylist.to/easylist/easyprivacy.txt',
|
'https://easylist.to/easylist/easyprivacy.txt',
|
||||||
'https://easylist-downloads.adblockplus.org/antiadblockfilters.txt',
|
'https://easylist-downloads.adblockplus.org/antiadblockfilters.txt',
|
||||||
'https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.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);
|
blocker.enableBlockingInSession(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue