Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: locales/en/filters.json

Issue 6021528219025408: Issue #1170 More progress migrating adblockplus.org to our CMS. (Closed)
Patch Set: Created Sept. 1, 2014, 10:45 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « locales/en/filter-cheatsheet.json ('k') | locales/en/getting_started.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: locales/en/filters.json
===================================================================
--- a/locales/en/filters.json
+++ b/locales/en/filters.json
@@ -21,624 +21,795 @@
"message": "The most trivial filter you can define is of course the address of banner you want to block. However, often this address changes every time you open a page. For example it could be"
},
"s7": {
+ "message": "http://example.com/ads/banner123.gif"
+ },
+ "s8": {
"message": "where 123 is a random number. Here blocking the complete address won't help you, you need a more general filter -- like"
},
- "s8": {
+ "s9": {
+ "message": "http://example.com/ads/banner*.gif"
+ },
+ "s10": {
"message": ". Or maybe even"
},
- "s9": {
+ "s11": {
+ "message": "http://example.com/ads/*"
+ },
+ "s12": {
"message": "."
},
- "s10": {
+ "s13": {
"message": "<em>Note</em>: Make sure that you are not replacing too much by wildcards. The filter"
},
- "s11": {
+ "s14": {
+ "message": "http://example.com/*"
+ },
+ "s15": {
"message": "will definitely block all banners but it will also block everything else from example.com that you still might want to see."
},
- "s12": {
+ "s16": {
"message": "Defining exception rules"
},
- "s13": {
+ "s17": {
"message": "Sometimes you will notice that one of your filters that is usually working quite well blocks in some case blocks something that it shouldn't be blocking. You don't want to remove this filter but you still don't want it to match in this one case."
},
- "s14": {
+ "s18": {
"message": "That's what exception rules are good for -- they allow you to define cases where filters shouldn't be applied. For example if you are unhappy with your filter"
},
- "s15": {
+ "s19": {
+ "message": "adv"
+ },
+ "s20": {
"message": "blocking"
},
- "s16": {
+ "s21": {
+ "message": "http://example.com/advice.html"
+ },
+ "s22": {
"message": ", you can define an exception rule"
},
- "s17": {
+ "s23": {
+ "message": "@@advice"
+ },
+ "s24": {
"message": ". Exception rules are no different from filter rules, you can use wildcards or regular expressions. You only have to precede them by"
},
- "s18": {
+ "s25": {
+ "message": "@@"
+ },
+ "s26": {
"message": "to indicate an exception rule."
},
- "s19": {
+ "s27": {
"message": "Exception rules can do more. If an exception rule starts with http:// or https:// (optionally with a pipe before it) it will make whole pages an exception. For example, if your exception rule is"
},
- "s20": {
+ "s28": {
+ "message": "@@|http://example.com"
+ },
+ "s29": {
"message": "and you open some page from example.com -- Adblock Plus will be entirely disabled on this page and nothing will be blocked."
},
- "s21": {
+ "s30": {
"message": "Matching at beginning/end of an address"
},
- "s22": {
+ "s31": {
"message": "Usually Adblock Plus treats every filter as if it had a wildcard at its beginning and end, e.g. there is not difference between the filters"
},
- "s23": {
+ "s32": {
+ "message": "ad"
+ },
+ "s33": {
"message": "and"
},
- "s24": {
+ "s34": {
+ "message": "*ad*"
+ },
+ "s35": {
"message": ". While this is usually unproblematic, sometimes you wish that the filter you defined only matches at the beginning or end of an address. For example you might want to block all Flash, but if you add the filter"
},
- "s25": {
+ "s36": {
+ "message": "swf"
+ },
+ "s37": {
"message": "the address"
},
- "s26": {
+ "s38": {
+ "message": "http://example.com/swf/index.html"
+ },
+ "s39": {
"message": "will also be blocked."
},
- "s27": {
+ "s40": {
"message": "Solution to this problem: add a pipe symbol to the filter to show that there should be definitely the end of the address at this point. For example the filter"
},
- "s28": {
+ "s41": {
+ "message": "swf|"
+ },
+ "s42": {
"message": "will block"
},
- "s29": {
+ "s43": {
+ "message": "http://example.com/annoyingflash.swf"
+ },
+ "s44": {
"message": "but not"
},
- "s30": {
+ "s46": {
"message": ". And the filter"
},
- "s31": {
+ "s47": {
"message": "|http://baddomain.example/"
},
- "s32": {
- "message": "will block"
- },
- "s33": {
+ "s49": {
"message": "http://baddomain.example/banner.gif"
},
- "s34": {
- "message": "but not"
- },
- "s35": {
+ "s51": {
"message": "http://gooddomain.example/analyze?http://baddomain.example"
},
- "s36": {
- "message": "."
- },
- "s37": {
+ "s53": {
"message": "Sometimes one wants to block"
},
- "s38": {
+ "s54": {
+ "message": "http://example.com/banner.gif"
+ },
+ "s55": {
"message": "as well as"
},
- "s39": {
- "message": "and"
+ "s56": {
+ "message": "https://example.com/banner.gif"
},
- "s40": {
+ "s58": {
+ "message": "http://www.example.com/banner.gif"
+ },
+ "s59": {
"message": ". This can be achieved by putting two pipe symbols in front of the filter which makes sure the filter matches at the beginning of the domain name:"
},
- "s41": {
+ "s60": {
+ "message": "||example.com/banner.gif"
+ },
+ "s61": {
"message": "will block all these addresses while not blocking"
},
- "s42": {
+ "s62": {
"message": "http://badexample.com/banner.gif"
},
- "s43": {
+ "s63": {
"message": "or"
},
- "s44": {
+ "s64": {
"message": "http://gooddomain.example/analyze?http://example.com/banner.gif"
},
- "s45": {
+ "s65": {
"message": "(requires Adblock Plus 1.1 or higher)."
},
- "s46": {
+ "s66": {
"message": "Marking separator characters"
},
- "s47": {
+ "s67": {
"message": "Often you need to accept any separator character in a filter. For example, you might write a filter that blocks"
},
- "s48": {
- "message": "and"
+ "s68": {
+ "message": "http://example.com/"
},
- "s49": {
- "message": "but not"
+ "s70": {
+ "message": "http://example.com:8000/"
},
- "s50": {
+ "s72": {
+ "message": "http://example.com.ar/"
+ },
+ "s73": {
"message": ". Here the symbol ^ can be used as a placeholder for a single separator character:"
},
- "s51": {
- "message": "(requires Adblock Plus 1.1 or higher)."
+ "s74": {
+ "message": "http://example.com^"
},
- "s52": {
- "message": "Separator character is anything but a letter, a digit, or one of the following:"
+ "s76": {
+ "message": "Separator character is anything but a letter, a digit, or one of the following: _ - . %. The end of the address is also accepted as separator. In the following example all separator characters are shown in red: http:"
},
- "s53": {
- "message": ". The end of the address is also accepted as separator. In the following example all separator characters are shown in red:"
+ "s77": {
+ "message": "//"
},
- "s54": {
- "message": ". So this address can be blocked with the filter"
+ "s78": {
+ "message": "example.com"
},
- "s55": {
- "message": "or"
+ "s79": {
+ "message": ":"
},
- "s56": {
- "message": "or"
+ "s80": {
+ "message": "8000"
},
- "s57": {
- "message": "."
+ "s81": {
+ "message": "/"
},
- "s58": {
+ "s82": {
+ "message": "foo.bar"
+ },
+ "s83": {
+ "message": "?"
+ },
+ "s84": {
+ "message": "a"
+ },
+ "s85": {
+ "message": "="
+ },
+ "s86": {
+ "message": "12"
+ },
+ "s87": {
+ "message": "&"
+ },
+ "s88": {
+ "message": "b"
+ },
+ "s90": {
+ "message": "%D1%82%D0%B5%D1%81%D1%82. So this address can be blocked with the filter"
+ },
+ "s91": {
+ "message": "^example.com^"
+ },
+ "s93": {
+ "message": "^%D1%82%D0%B5%D1%81%D1%82^"
+ },
+ "s95": {
+ "message": "^foo.bar^"
+ },
+ "s97": {
"message": "Comments"
},
- "s59": {
+ "s98": {
"message": "Any rule that starts with an exclamation mark is considered a comment. It will still show up in the filter list but in grey instead of black. Adblock Plus will ignore this rule for actual blocking so it is safe to write there whatever you want. You can place a comment rule above a real filter to describe what it is doing. Or you can put a comment on top of your filter list stating your authorship (most filter list authors do that)."
},
- "s60": {
+ "s99": {
"message": "Special comments"
},
- "s61": {
- "message": "Special comments will only have an effect in downloaded filter lists, not in custom filters."
+ "s100": {
+ "message": "Special comments will only have an effect in downloaded filter lists, not in custom filters. They can set a number of parameters for the filter list:"
},
- "s62": {
- "message": "They can set a number\n of parameters for the filter list:"
+ "s101": {
+ "message": "! Homepage: http://example.com/"
},
- "s63": {
+ "s102": {
"message": "This comment determines which webpage should be linked as filter list homepage."
},
- "s64": {
- "message": "This comment sets a fixed title for the filter list."
+ "s103": {
+ "message": "! Title: FooList"
},
- "s65": {
- "message": "If this comment is present the user will no longer be able to change\n the title."
+ "s104": {
+ "message": "This comment sets a fixed title for the filter list. If this comment is present the user will no longer be able to change the title."
},
- "s66": {
+ "s105": {
+ "message": "! Expires: 5 days"
+ },
+ "s106": {
"message": "This comment sets the update interval for the filter list, the value can be given in days (e.g."
},
- "s67": {
- "message": ") or hours\n (e.g."
+ "s107": {
+ "message": "5 days"
},
- "s68": {
- "message": ")."
+ "s108": {
+ "message": ") or hours (e.g."
},
- "s69": {
- "message": "Any value between 1 hour and 14 days is possible."
+ "s109": {
+ "message": "8 hours"
},
- "s70": {
- "message": "Note that the update\n will not necessarily happen after this time interval."
+ "s110": {
+ "message": "). Any value between 1 hour and 14 days is possible. Note that the update will not necessarily happen after this time interval. The actual update time is slightly randomized and depends on some additional factors to reduce server load."
},
- "s71": {
- "message": "The actual update time is slightly randomized and depends on\n some additional factors to reduce server load."
+ "s111": {
+ "message": "! Checksum: OaopkIiiAl77sSHk/VAWDA"
},
- "s72": {
- "message": "This comment makes sure that accidental corruption of the data won't result\n in broken filters."
+ "s112": {
+ "message": "This comment makes sure that accidental corruption of the data won't result in broken filters. For example, some firewall software might modify the filter"
},
- "s73": {
- "message": "For example, some firewall software might modify the filter"
- },
- "s74": {
+ "s113": {
"message": "*/adnetwork/*"
},
- "s75": {
- "message": "on download\n in an attempt to protect the user against ads."
+ "s114": {
+ "message": "on download in an attempt to protect the user against ads. It will remove part of the filter so that Adblock Plus will only see the filter"
},
- "s76": {
- "message": "It will remove part of the filter so that Adblock Plus will only see\n the filter"
+ "s115": {
+ "message": "**"
},
- "s77": {
- "message": "."
+ "s116": {
+ "message": ". A checksum comment in the filter list protects against this scenario, any modifications will have the result that the checksum no longer matches and Adblock Plus will ignore the data."
},
- "s78": {
- "message": "A checksum comment in the filter list protects against this scenario, any modifications\n will have the result that the checksum no longer matches and Adblock Plus will ignore the data."
- },
- "s79": {
+ "s117": {
"message": "To calculate the checksum the following steps need to be performed:"
},
- "s80": {
+ "s118": {
"message": "Remove the existing checksum comment if any."
},
- "s81": {
+ "s119": {
"message": "Encode filter list text using UTF-8 encoding."
},
- "s82": {
+ "s120": {
"message": "Convert all line breaks to Unix style (replace"
},
- "s83": {
+ "s121": {
+ "message": "\\r"
+ },
+ "s122": {
"message": "by"
},
- "s84": {
+ "s123": {
+ "message": "\\n"
+ },
+ "s124": {
"message": "if present)."
},
- "s85": {
+ "s125": {
"message": "Remove empty lines (replace sequences of the"
},
- "s86": {
+ "s127": {
"message": "character by a single"
},
- "s87": {
+ "s129": {
"message": "character)."
},
- "s88": {
+ "s130": {
"message": "Calculate the base64-encoded MD5 checksum of the text, remove trailing"
},
- "s89": {
+ "s132": {
"message": "characters if any."
},
- "s90": {
- "message": "You can also have a look at the Python-based reference implementations to\n <a>validate a checksum</a> and to\n <a>add a checksum to a file</a>."
+ "s133": {
+ "message": "You can also have a look at the Python-based reference implementations to <a>validate a checksum</a> and to <a>add a checksum to a file</a>."
},
- "s91": {
- "message": "This comment indicates that the filter list has moved to a new download address."
+ "s134": {
+ "message": "! Redirect: http://example.com/list.txt"
},
- "s92": {
- "message": "Adblock Plus will ignore any file\n contents beyond that comment and immediately try downloading from the new address."
+ "s135": {
+ "message": "This comment indicates that the filter list has moved to a new download address. Adblock Plus will ignore any file contents beyond that comment and immediately try downloading from the new address. In case of success the address of the filter list will be updated in the settings. This comment is ignored if the new address is the same as the current address, meaning that it can be used to enforce the \"canonical\" address of the filter list."
},
- "s93": {
- "message": "In case of success the address\n of the filter list will be updated in the settings."
+ "s136": {
+ "message": "! Version: 1234"
},
- "s94": {
- "message": "This comment is ignored if the new address is the same as the\n current address, meaning that it can be used to enforce the \"canonical\" address of the filter list."
+ "s137": {
+ "message": "This comment defines a numerical version of the filter list. This version number will be displayed in issue reports and can be used to verify that the report refers to the current version of the filter list."
},
- "s95": {
- "message": "This comment defines a numerical version of the filter list."
- },
- "s96": {
- "message": "This version number will be displayed in issue reports\n and can be used to verify that the report refers to the current version of the filter list."
- },
- "s97": {
+ "s138": {
"message": "Advanced features"
},
- "s98": {
+ "s139": {
"message": "The features described in this section are usually used only by power users and filterlist creators. Feel free to skip it."
},
- "s99": {
+ "s140": {
"message": "Specifying filter options"
},
- "s100": {
+ "s141": {
"message": "Adblock Plus allows you to specify a number of options to modify the behavior of a filter. You list these options separated with commas after a dollar sign ($) at the end of the filter, for example:"
},
- "s101": {
+ "s142": {
"message": "Here"
},
- "s102": {
+ "s143": {
+ "message": "*/ads/*"
+ },
+ "s144": {
"message": "is the actual filter and"
},
- "s103": {
- "message": "and"
+ "s145": {
+ "message": "script"
},
- "s104": {
+ "s147": {
+ "message": "match-case"
+ },
+ "s148": {
"message": "are its options. Currently the following options are supported:"
},
- "s105": {
+ "s149": {
"message": "Type options: determine which types of elements a filter can block (or whitelist in case of an exception rule). Multiple type options can be specified to indicate that the filter should be applied to several types of elements. Possible types are:"
},
- "s106": {
+ "s151": {
"message": "-- external scripts loaded via HTML script tag"
},
- "s107": {
+ "s152": {
+ "message": "image"
+ },
+ "s153": {
"message": "-- regular images, typically loaded via HTML img tag"
},
- "s108": {
+ "s154": {
+ "message": "stylesheet"
+ },
+ "s155": {
"message": "-- external CSS stylesheet files"
},
- "s109": {
+ "s156": {
+ "message": "object"
+ },
+ "s157": {
"message": "-- content handled by browser plugins, e.g. Flash or Java"
},
- "s110": {
- "message": "-- requests started by the"
+ "s158": {
+ "message": "xmlhttprequest"
},
- "s111": {
- "message": "http://www.w3.org/TR/XMLHttpRequest/"
+ "s159": {
+ "message": "-- requests started by the <a>XMLHttpRequest object</a>"
},
- "s112": {
- "message": "XMLHttpRequest object"
+ "s160": {
+ "message": "object-subrequest"
},
- "s113": {
+ "s161": {
"message": "-- requests started plugins like Flash"
},
- "s114": {
+ "s162": {
+ "message": "subdocument"
+ },
+ "s163": {
"message": "-- embedded pages, usually included via HTML frames"
},
- "s115": {
+ "s164": {
+ "message": "document"
+ },
+ "s165": {
"message": "-- the page itself (only <a>exception rules</a> can be applied to the page)"
},
- "s116": {
+ "s166": {
+ "message": "elemhide"
+ },
+ "s167": {
"message": "-- for exception rules only, similar to"
},
- "s117": {
+ "s169": {
"message": "but only disables <a>element hiding rules</a> on the page rather than all filter rules (Adblock Plus 1.2 and higher required)"
},
- "s118": {
+ "s170": {
+ "message": "other"
+ },
+ "s171": {
"message": "-- types of requests not covered in the list above"
},
- "s119": {
+ "s172": {
"message": "The type options"
},
- "s120": {
+ "s173": {
+ "message": "background"
+ },
+ "s174": {
"message": ","
},
- "s121": {
- "message": ","
+ "s175": {
+ "message": "xbl"
},
- "s122": {
- "message": "and"
+ "s177": {
+ "message": "ping"
},
- "s123": {
- "message": "are outdated and should no\n longer be used."
+ "s179": {
+ "message": "dtd"
},
- "s124": {
+ "s180": {
+ "message": "are outdated and should no longer be used."
+ },
+ "s181": {
"message": "Inverse type options: specify the element types the filter should <strong>not</strong> be applied to. Possible inverse type options:"
},
- "s125": {
- "message": ","
+ "s182": {
+ "message": "~script"
},
- "s126": {
- "message": ","
+ "s184": {
+ "message": "~image"
},
- "s127": {
- "message": ","
+ "s186": {
+ "message": "~stylesheet"
},
- "s128": {
- "message": ","
+ "s188": {
+ "message": "~object"
},
- "s129": {
- "message": ","
+ "s190": {
+ "message": "~xmlhttprequest"
},
- "s130": {
- "message": ","
+ "s192": {
+ "message": "~object-subrequest"
},
- "s131": {
- "message": ","
+ "s194": {
+ "message": "~subdocument"
},
- "s132": {
- "message": ","
+ "s196": {
+ "message": "~document"
},
- "s133": {
- "message": ","
+ "s198": {
+ "message": "~elemhide"
},
- "s134": {
+ "s200": {
+ "message": "~other"
+ },
+ "s201": {
"message": "Restriction to third-party/first-party requests: If the"
},
- "s135": {
+ "s202": {
+ "message": "third-party"
+ },
+ "s203": {
"message": "option is specified, the filter is only applied to requests from a different origin than the currently viewed page. Similarly,"
},
- "s136": {
+ "s204": {
+ "message": "~third-party"
+ },
+ "s205": {
"message": "restricts the filter to requests from the same origin as the currently viewed page."
},
- "s137": {
+ "s206": {
"message": "Domain restrictions: The option"
},
- "s138": {
+ "s207": {
+ "message": "domain=example.com"
+ },
+ "s208": {
"message": "means that the filter should only be applied on pages from \"example.com\" domain. Multiple domains can be specified using \"|\" as separator: with the option"
},
- "s139": {
- "message": "the filter will only be applied on pages from &quot;example.com&quot; or &quot;example.net&quot; domains. If a domain name is preceded with &quot;~&quot;, the filter should <strong>not</strong> be applied on pages from this domain. For example,"
+ "s209": {
+ "message": "domain=example.com|example.net"
},
- "s140": {
+ "s210": {
+ "message": "the filter will only be applied on pages from \"example.com\" or \"example.net\" domains. If a domain name is preceded with \"~\", the filter should <strong>not</strong> be applied on pages from this domain. For example,"
+ },
+ "s211": {
+ "message": "domain=~example.com"
+ },
+ "s212": {
"message": "means that the filter should be applied on pages from any domain but \"example.com\" and"
},
- "s141": {
+ "s213": {
+ "message": "domain=example.com|~foo.example.com"
+ },
+ "s214": {
"message": "restricts the filter to the \"example.com\" domain with the exception of \"foo.example.com\" subdomain."
},
- "s142": {
+ "s216": {
"message": "-- makes the filter only apply to addresses with matching letter case, e.g. the filter"
},
- "s143": {
- "message": "will block"
+ "s217": {
+ "message": "*/BannerAd.gif$match-case"
},
- "s144": {
- "message": "but not"
+ "s219": {
+ "message": "http://example.com/BannerAd.gif"
},
- "s145": {
- "message": "."
+ "s221": {
+ "message": "http://example.com/bannerad.gif"
},
- "s146": {
+ "s223": {
+ "message": "collapse"
+ },
+ "s224": {
"message": "-- this option will override the global \"Hide placeholders of blocked elements\" option and make sure the filter always hides the element. Similarly the"
},
- "s147": {
+ "s225": {
+ "message": "~collapse"
+ },
+ "s226": {
"message": "option will make sure the filter never hides the element."
},
- "s148": {
- "message": "-- for any address matching a blocking rule with\n this option and not matching any exception rules with this option a\n <a>Do-Not-Track header</a> will be sent (requires\n Adblock Plus 1.3.5 or higher)."
+ "s227": {
+ "message": "donottrack"
},
- "s149": {
- "message": "For backwards compatibility it is recommended\n to use this option in combination with contradicting type options, this will prevent this\n filter from blocking anything in earlier Adblock Plus versions:"
+ "s228": {
+ "message": "-- for any address matching a blocking rule with this option and not matching any exception rules with this option a <a>Do-Not-Track header</a> will be sent (requires Adblock Plus 1.3.5 or higher). For backwards compatibility it is recommended to use this option in combination with contradicting type options, this will prevent this filter from blocking anything in earlier Adblock Plus versions:"
},
- "s150": {
+ "s229": {
+ "message": "*$donottrack,image,~image"
+ },
+ "s230": {
"message": "Using regular expressions"
},
- "s151": {
+ "s231": {
"message": "If you want even more control about what your filters match and what they don't match, you can use regular expressions. For example the filter"
},
- "s152": {
+ "s232": {
+ "message": "/banner\\d+/"
+ },
+ "s233": {
"message": "will match"
},
- "s153": {
- "message": "and"
+ "s234": {
+ "message": "banner123"
},
- "s154": {
- "message": "but not"
+ "s236": {
+ "message": "banner321"
},
- "s155": {
- "message": ". You can check out"
+ "s238": {
+ "message": "banners"
},
- "s156": {
- "message": "https://developer.mozilla.org/en/Core_JavaScript_1.5_Guide/Regular_Expressions#Writing_a_Regular_Expression_Pattern"
+ "s239": {
+ "message": ". You can check out <a>documentation on regular expressions</a> to learn how to write them."
},
- "s157": {
- "message": "documentation on regular expressions"
- },
- "s158": {
- "message": "to learn how to write them."
- },
- "s159": {
+ "s240": {
"message": "<em>Note</em>: For performance reasons it is recommended not to use regular expressions if they can be avoided."
},
- "s160": {
+ "s241": {
"message": "Element hiding"
},
- "s161": {
+ "s242": {
"message": "Basic rules"
},
- "s162": {
+ "s243": {
"message": "Sometimes you will find advertisements that can't be blocked because they are embedded as text in the web page itself. If you look at the source code of the web page you might find something like this:"
},
- "s163": {
- "message": "<div class=\"textad\">\nCheapest tofu, only here and now!\n</div>\n<div id=\"sponsorad\">\nReally cheap tofu, click here!\n</div>\n<textad>\nOnly here you get the best tofu!\n</textad>"
- },
- "s164": {
+ "s244": {
"message": "You need to download the web page so you will necessarily download the advertisements. All you can do here is to hide the advertisement so you don't need to see it. That's what element hiding is meant for."
},
- "s165": {
+ "s245": {
"message": "The first advertisement above is contained inside a div element with class attribute \"textad\". The following rule will hide exactly this combination:"
},
- "s166": {
+ "s246": {
+ "message": "##div.textad"
+ },
+ "s247": {
"message": ". Here ## marks an element hiding rule while the rest is a selector identifying the elements that need to be hidden. You can hide elements by their id attribute similarly,"
},
- "s167": {
+ "s248": {
+ "message": "##div#sponsorad"
+ },
+ "s249": {
"message": "will hide the second advertisement. You don't need to specify the element name, the rule"
},
- "s168": {
+ "s250": {
+ "message": "##*#sponsorad"
+ },
+ "s251": {
"message": "will work just as well. And you can hide elements by element name only, e.g."
},
- "s169": {
+ "s252": {
+ "message": "##textad"
+ },
+ "s253": {
"message": "for the third advertisement."
},
- "s170": {
+ "s254": {
"message": "The <a>Element Hiding Helper extension</a> helps selecting the correct element and writing the corresponding rule without having to view the source code of the page. Basic HTML knowledge is useful nevertheless."
},
- "s171": {
+ "s255": {
"message": "<em>Note</em>: Element hiding works very differently from normal filters. This has the implication that no wildcards are supported in element hiding rules."
},
- "s172": {
+ "s256": {
"message": "Limiting rules to certain domains"
},
- "s173": {
+ "s257": {
"message": "Usually you want to hide a specific ad on one specific site, you don't want your rule to be applied on other sites. For example the rule"
},
- "s174": {
+ "s258": {
+ "message": "##*.sponsor"
+ },
+ "s259": {
"message": "might hide valid code on some sites. But if you write it as"
},
- "s175": {
+ "s260": {
+ "message": "example.com##*.sponsor"
+ },
+ "s261": {
"message": "it will be applied on"
},
- "s176": {
- "message": "and"
+ "s264": {
+ "message": "http://something.example.com/"
},
- "s177": {
+ "s265": {
"message": "but not on"
},
- "s178": {
+ "s266": {
+ "message": "http://example.org/"
+ },
+ "s267": {
"message": ". You can also specify multiple domains -- simply separate them with commas:"
},
- "s179": {
- "message": "."
+ "s268": {
+ "message": "domain1.example,domain2.example,domain3.example##*.sponsor"
},
- "s180": {
- "message": "If a domain name is preceded with &quot;~&quot;, the rule will <strong>not</strong> be applied on pages from this domain (requires Adblock Plus 1.1 or higher). For example,"
+ "s270": {
+ "message": "If a domain name is preceded with \"~\", the rule will <strong>not</strong> be applied on pages from this domain (requires Adblock Plus 1.1 or higher). For example,"
},
- "s181": {
+ "s271": {
+ "message": "~example.com##*.sponsor"
+ },
+ "s272": {
"message": "will be be applied on pages from any domain but \"example.com\" and"
},
- "s182": {
+ "s273": {
+ "message": "example.com,~foo.example.com##*.sponsor"
+ },
+ "s274": {
"message": "makes the rule apply on \"example.com\" domain with the exception of \"foo.example.com\" subdomain."
},
- "s183": {
+ "s275": {
"message": "<em>Note</em>: Due to the way how element hiding is implemented, you really can only limit it to full domain names. You cannot use any other part of the address and you cannot use"
},
- "s184": {
+ "s276": {
+ "message": "domain"
+ },
+ "s277": {
"message": "as a replacement for"
},
- "s185": {
- "message": "."
+ "s278": {
+ "message": "domain.example,domain.test"
},
- "s186": {
+ "s280": {
"message": "<em>Note</em>: Element hiding rules with domain limitation can be used to hide browser's user interface elements as well. For example the filter rule"
},
- "s187": {
+ "s281": {
+ "message": "browser##menuitem#javascriptConsole"
+ },
+ "s282": {
"message": "will hide the JavaScript Console entry in Firefox's Tools menu."
},
- "s188": {
+ "s283": {
"message": "Attribute selectors"
},
- "s189": {
+ "s284": {
"message": "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"
},
- "s190": {
+ "s285": {
+ "message": "##table[width=\"80%\"]"
+ },
+ "s286": {
"message": "will hide tables with width attribute set to 80%. If you don't want to specify the full value of the attribute,"
},
- "s191": {
+ "s287": {
+ "message": "##div[title*=\"adv\"]"
+ },
+ "s288": {
"message": "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"
},
- "s192": {
+ "s289": {
+ "message": "##div[title^=\"adv\"][title$=\"ert\"]"
+ },
+ "s290": {
"message": "will hide div elements with title starting with \"adv\" and ending with \"ert\". As you see, you can also use multiple conditions --"
},
- "s193": {
+ "s291": {
+ "message": "table[width=\"80%\"][bgcolor=\"white\"]"
+ },
+ "s292": {
"message": "will match tables with width attribute set to 80% and bgcolor attribute set to white."
},
- "s194": {
+ "s293": {
"message": "Advanced selectors"
},
- "s195": {
+ "s294": {
"message": "In general, any CSS selector supported by Firefox can be used for element hiding. For example the following rule will hide anything following a div element with class \"adheader\":"
},
- "s196": {
- "message": ". For a full list of CSS list see"
+ "s295": {
+ "message": "##div.adheader + *"
},
- "s197": {
- "message": "http://www.w3.org/TR/css3-selectors/"
+ "s296": {
+ "message": ". For a full list of CSS list see <a>W3C CSS specification</a> (note that not all selectors are supported by Firefox yet)."
},
- "s198": {
- "message": "W3C CSS specification"
- },
- "s199": {
- "message": "(note that not all selectors are supported by Firefox yet)."
- },
- "s200": {
+ "s297": {
"message": "<em>Note</em>: This functionality is for advanced users only, you should be comfortable with CSS selectors to use it. Adblock Plus won't be able to check the syntax of the selector you are adding, if you use invalid CSS syntax you might break other (valid) rules you have. Check JavaScript Console for CSS errors."
},
- "s201": {
+ "s298": {
"message": "Exception rules"
},
- "s202": {
- "message": "Exception rules can disable existing rules on particular domains."
+ "s299": {
+ "message": "Exception rules can disable existing rules on particular domains. These are mostly useful to filter subscription authors who are extending another filter subscription that they cannot change. For example, the rule"
},
- "s203": {
- "message": "These are mostly\n useful to filter subscription authors who are extending another filter subscription that they\n cannot change."
+ "s301": {
+ "message": "can be disabled on"
},
- "s204": {
- "message": "For example, the rule"
- },
- "s205": {
- "message": "can be\n disabled on"
- },
- "s206": {
+ "s303": {
"message": "using the exception rule"
},
- "s207": {
- "message": "."
+ "s304": {
+ "message": "example.com#@#div.textad"
},
- "s208": {
- "message": "The combination of these two\n rules has exactly the same effect as the single rule"
+ "s305": {
+ "message": ". The combination of these two rules has exactly the same effect as the single rule"
},
- "s209": {
- "message": "."
+ "s306": {
+ "message": "~example.com##div.textad"
},
- "s210": {
- "message": "It is recommended that you use\n exception rules only when you cannot change an overly general element hiding rule, in all the\n other cases limiting this rule to the necessary domains is preferable."
+ "s307": {
+ "message": ". It is recommended that you use exception rules only when you cannot change an overly general element hiding rule, in all the other cases limiting this rule to the necessary domains is preferable."
},
- "s211": {
+ "s308": {
"message": "Simplified element hiding syntax"
},
- "s212": {
+ "s309": {
"message": "Adblock Plus supports simplified element hiding syntax (e.g."
},
- "s213": {
+ "s310": {
+ "message": "#div(id=foo)"
+ },
+ "s311": {
"message": ") for backwards compatibility only. Using this syntax is discouraged, usual CSS selectors are preferred. Support for this syntax might be removed at some point."
}
}
« no previous file with comments | « locales/en/filter-cheatsheet.json ('k') | locales/en/getting_started.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld