Skip to content

Commit

Permalink
Use native implementation of :nth-ancestor(n)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustOff committed Jul 11, 2020
1 parent b24637a commit 02ab9bb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
9 changes: 0 additions & 9 deletions src/js/assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,15 +352,6 @@ api.fetchFilterList.legacy = {
'(norafif,': '(no-requestAnimationFrame-if.js,',
'(noeval)': '(noeval.js)',
'(nowebrtc)': '(nowebrtc.js)',
':nth-ancestor(1)': ':xpath(..)',
':nth-ancestor(2)': ':xpath(../..)',
':nth-ancestor(3)': ':xpath(../../..)',
':nth-ancestor(4)': ':xpath(../../../..)',
':nth-ancestor(5)': ':xpath(../../../../..)',
':nth-ancestor(6)': ':xpath(../../../../../..)',
':nth-ancestor(7)': ':xpath(../../../../../../..)',
':nth-ancestor(8)': ':xpath(../../../../../../../..)',
':nth-ancestor(9)': ':xpath(../../../../../../../../..)',
':upward(1)': ':xpath(..)',
':upward(2)': ':xpath(../..)',
':upward(3)': ':xpath(../../..)',
Expand Down
2 changes: 1 addition & 1 deletion src/js/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ var onVersionReady = function(lastVersion) {
µb.assets.purge('ublock-resources');

// Force updating all filters due to filter syntax converter update.
if ( vAPI.app.compareVersions(lastVersion, "1.16.4.21") <= 0 ) {
if ( vAPI.app.compareVersions(lastVersion, "1.16.4.22") <= 0 ) {
µb.assets.purge(/./, 'public_suffix_list.dat');
}

Expand Down

0 comments on commit 02ab9bb

Please sign in to comment.