Quantcast
Channel: MozTW 討論區
Viewing all articles
Browse latest Browse all 7601

請問Adblock plus及Element Hiding Helper for Adblock Plus可否萬用字元

$
0
0
代碼:s.yimg.com##*[id^="ydcm-"]


參考 https://adblockplus.org/en/filters#elemhide
引言回覆:Attribute selectors

Some advertisers don't make it easy for you — their text advertisements have neither an id nor a class attribute. You can use other attributes to hide those, for example ##table[width="80%"] will hide tables with width attribute set to 80%. If you don't want to specify the full value of the attribute, ##div[title*="adv"] will hide all div elements with title attribute containing the string "adv". You can also check the beginning and the end of an attribute, for example ##div[title^="adv"][title$="ert"] will hide div elements with title starting with "adv" and ending with "ert". As you see, you can also use multiple conditions — table[width="80%"][bgcolor="white"] will match tables with width attribute set to 80% and bgcolor attribute set to white.


以及 https://adblockplus.org/en/filter-cheatsheet#elementselection

統計資料 : 發表於 由 rubcandy0208 • 發表於 2014-06-11, 11:11 • 回覆 4 • 觀看 592

Viewing all articles
Browse latest Browse all 7601

Trending Articles