Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR for forks #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Filter.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
@@||gismeteo.ru^
||ya.ru^
@@||youtube.com^
@@||youtrupe.com^
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
</p>
<h3 align="center">Ad blocker with advanced privacy protection features</h3>
<p align="center">

eriuierbgerg
AdGuard is a fast and lightweight ad blocking browser extension<br/>that effectively blocks all types of ads and trackers.
</p>

Expand Down
1 change: 1 addition & 0 deletions androidspecific.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@

||example.org^
championat.com##.header
||novyidomain
4 changes: 4 additions & 0 deletions dns_filter_list_too_long_name_whatever_we_can_think_of.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ example.org##div
||ya.ru^
||example.com^
||i.ua^
@@||dealWith.com^
@@thinkofbank.com
eriuuoherguoheruogeuo
ejonrgjnergjjoer
5 changes: 3 additions & 2 deletions userscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
// @grant GM_addStyle
// @grant property:settings
// @run-at document-start
//@ts-expect-error
// ==/UserScript==

(function() {
Expand All @@ -76,7 +77,7 @@
try {
_proto = root.RegExp.prototype;
} catch(ignore) {
return;
return null;
}
// Prevent RegExpt + toString trick (technically possible with any other object, but I encountered only this one
let _RE_tS = Object.getOwnPropertyDescriptor(_proto, 'toString');
Expand All @@ -89,7 +90,7 @@
set: function(val) {
console.warn('Attempt to change toString for', this, 'with', fts.call(val));
//throw 'stop it!';
return true;
return false;
}
});
}
Expand Down