Skip to content

Commit

Permalink
add: reichelt.de needs window.event
Browse files Browse the repository at this point in the history
Reichelt delivers buggy JS that relies on window.event being present-but-undefined.
This is and old Microsoft-ism that apparently made it into Chromium...
  • Loading branch information
martok committed Dec 25, 2024
1 parent 1cb06a7 commit 6743cd9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/builtin-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ accounts.pixiv.net
www.redditstatic.com/desktop2x/CommentsPage.*.js$script
$script-content,reddit-comments-regexp
! --
*.reichelt.de
std-eventProperty
! --
*.tm-exchange.com
std-IntlRelativeTimeFormat
*.tm-exchange.com/js/bundle.js?v=*$script
Expand Down
3 changes: 3 additions & 0 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ function evaluateFix(fix, script, csp, contentReplace) {
case "std-ElementReplaceChildren":
script.push(pf.Element_replaceChildren);
break;
case "std-eventProperty":
script.push(pf.Window_event);
break;
case "std-FunctionToString":
script.push(pf.Function_toString_proxy);
break;
Expand Down
10 changes: 10 additions & 0 deletions lib/polyfills.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6743cd9

Please sign in to comment.