Skip to content
Permalink
Browse files
Re-map :upward(n) from :xpath to :nth-ancestor(n)
  • Loading branch information
JustOff committed Jul 11, 2020
1 parent 02ab9bb commit 521ef34f5e7cec6837ad9e160ec57fce49abba1b
Showing with 9 additions and 9 deletions.
  1. +9 −9 src/js/assets.js
@@ -352,15 +352,15 @@ api.fetchFilterList.legacy = {
'(norafif,': '(no-requestAnimationFrame-if.js,',
'(noeval)': '(noeval.js)',
'(nowebrtc)': '(nowebrtc.js)',
':upward(1)': ':xpath(..)',
':upward(2)': ':xpath(../..)',
':upward(3)': ':xpath(../../..)',
':upward(4)': ':xpath(../../../..)',
':upward(5)': ':xpath(../../../../..)',
':upward(6)': ':xpath(../../../../../..)',
':upward(7)': ':xpath(../../../../../../..)',
':upward(8)': ':xpath(../../../../../../../..)',
':upward(9)': ':xpath(../../../../../../../../..)'
':upward(1)': ':nth-ancestor(1)',
':upward(2)': ':nth-ancestor(2)',
':upward(3)': ':nth-ancestor(3)',
':upward(4)': ':nth-ancestor(4)',
':upward(5)': ':nth-ancestor(5)',
':upward(6)': ':nth-ancestor(6)',
':upward(7)': ':nth-ancestor(7)',
':upward(8)': ':nth-ancestor(8)',
':upward(9)': ':nth-ancestor(9)'
},
get regexRules() {
delete this.regexRules;

0 comments on commit 521ef34

Please sign in to comment.