Skip to content

Commit

Permalink
Fix syntax error for youtube performance hack
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Jan 25, 2024
1 parent df412b1 commit 94ad15a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Improvements:

* Various improvements/fixes to existing rules
* Significantly improve popup performance under YouTube when using uBlock Origin

Bugfixes:

Expand Down
4 changes: 2 additions & 2 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125321,15 +125321,15 @@ var $$IMU_EXPORT$$;
if (need_qsa_patch) {
old_selectorall = document.querySelectorAll;
try {
document.querySelectorAll = () => {return [];}
(document as any).querySelectorAll = () => {return [];}
} catch (e) {}
}

var obj = get_bounding_client_rect_inner(el, mapcache, true);

if (need_qsa_patch) {
try {
document.querySelectorAll = old_selectorall;
(document as any).querySelectorAll = old_selectorall;
} catch (e) {}
}

Expand Down

0 comments on commit 94ad15a

Please sign in to comment.