简体   繁体   中英

Is there any snippet or jQuery plugin to list all the elements in DOM matched by easylist.txt patterns?

I there,

Is there any snippet or jQuery plugin to list all the elements in DOM matched by easylist.txt or fanboy's list?

I need to remove matched elements, I know I can get the source code from AdBlock Plus, but I checked it out, and I get confused with the rest of the app, since its all written in JS but with browser-specific events and functions since it's ment to be integrated as an extension.

I've found some selector component but I dont know how to implement it.

Take a look at EasyList's filters

I need a function that would give me the matched elements in a list/array so I can process the thing.

Thanks in advance.

You will need to do some thinking about which attributes to look in but i guess the "Attribute Contains Selector" will help.

http://api.jquery.com/attribute-contains-selector/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM