Closed ethus3h closed 8 years ago
With extensions disabled, the advert appears in the upper right corner of the page. I suspect this is because Twitter changed the page, since the ad blocker would have no effect with exensions disabeled.
It is not possible to test with the ad blocker enabled with extensions disabled, since Firefox does not allow over riding the disabling of extensions.
As I forgot to attach the screenshots of extensions, I attach them now.
twitter.com###stream-item-who_to_follow_entry-*
is not a valid cosmetic filter (aka "element hiding" filter). See the doc for element hiding filters:
Any CSS selector supported by Firefox can be used for element hiding.
stream-item-who_to_follow_entry-*
is not a valid CSS selector:
document.querySelector('#stream-item-who_to_follow_entry-*');
Uncaught DOMException: Failed to execute 'querySelector' on 'Document': '#stream-item-who_to_follow_entry-*' is not a valid selector.
You probably want:
twitter.com##[id^="stream-item-who_to_follow_entry-"]
The suggested filter appears to work! :) , although it does not appear to be listed in the logs.
I was going by the documentation https://github.com/gorhill/uBlock/wiki/Static-filter-syntax since that is for uBlock Origin which I use. It says * as wildcard can be used in Cosmetic filters section. It also makes no mention of using CSS selectors. The example given of an "entity" in the relevant documentation is google.*###tads.c
; "entity" is defined as "a formal domain name with the Public Suffix part replaced by a wildcard". It also gives the example of "google.* will apply to all similar Google domain names". Umm, these on closer reading appear to contradict each other as the Suffix would be at the end of the entity but there is more text after the * in the example given. I'm probably just getting confused. Anyway maybe there's a simpler way to clarify it.
The linked documentation above (https://adblockplus.org/filter-cheatsheet#elementhiding) is provided by Ad block Plus; I do not use Ad block Plus so it doesn't really apply to me, and have no intention of using it or being swayed by their promotional.
It is very helpful for the rule you gave me! Thank you so much for your excellent app you made and provided, and for the assitance of this rule! Best luck and wishes :D
The domain specifier (the part before the ##
token) allows wildcards, specifically wildcard public suffixes; the part after the ##
token must be a valid CSS selector, and the only wildcard allowed there is the element wildcard (for example, ##div * p
means "hide p
elements that are descendants of any element that is a descendant of a div
element, on any domain" and the asterisk is what "any element" corresponds to).
twitter.com##.WhoToFollow
On https://twitter.com/
The element ###stream-item-who_to_follow_entry-679522565950443519 is not hidden even after adding the following lines to the "My filters" section of the dashboard.
twitter.com###stream-item-who_to_follow_entry- www.twitter.com###stream-item-who_to_follow_entry- _.twitter.com###stream-item-who_to_followentry-
The page at chrome://ublock0/content/logger-ui.html does not show any log entries. Oh scratch that, seems that only new blocked things show up there and not past blocked items.
Here is log entry after refreshing the problematic page:
Settings are attached.
my-ublock-backup_12_27_2015,_11_31_19_PM.txt
Using uBlock Origin 1.5.0.
Using Firefox 43.0.2.
Using OS X 10.11.2.
Screenshot of browser extensions is attached. I will test with extesions diasabled after submitting this issue as I do not want to lose the typing I have done so far.