Skip to content

The simplest converter from FullXPath to Adblock/Ublock custom rule

Notifications You must be signed in to change notification settings

partoftheworlD/FullXPath2UblockRule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

FullXPath2UblockRule

The simplest converter from FullXPath to Adblock/Ublock custom rule. More and more sites have started using advertising blocks with random class names, xpath is a great solution to this problem.

Example

./FullXPath2UblockRule example.com /html/body/div/div[6]/div[5]/div[1]/div/div[8]

And we're getting:

example.com##html > body > div > div:nth-of-type(6) > div:nth-of-type(5) > div:nth-of-type(1) > div > div:nth-of-type(8)

About

The simplest converter from FullXPath to Adblock/Ublock custom rule

Topics

Resources

Stars

Watchers

Forks