-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cosmetic filters in about:blank
iframe
#688
Comments
I get no such stuff, however you already have a working filter (adguard one) |
@mapx- its in the quiz at the end of article
|
I try block ony 3 elements no all widget. |
|
That will block other assets used by the iframe, how about Facebook icon: |
This comment has been minimized.
This comment has been minimized.
what's wrong with |
Remove all plugin form site. In the past possible remove 3 elements form last "slide". Now only two with network filter if names of files are stable. |
@gorhill how to cosmetically hide elements in In this case:
|
I would need to fix uBO's code to use |
This comment has been minimized.
This comment has been minimized.
@gorhill |
Related issues: - uBlockOrigin/uBlock-issues#688 - uBlockOrigin/uBlock-issues#1164 `match_about_blank` is now used for content scripts and user styles.
This still does not work in quiz frame on
|
But that is just gorhill/uBlock#1744? |
I tried manually adding:
|
Related issue: - uBlockOrigin/uBlock-issues#688 `about:` frames need to lookup and use the inherited origin from their parent browsing context for proper lookup of cosmetic filters.
Specific cosmetic filters should work with latest commit, but there is still an issue which I need to investigate, the mutation observer does not work in the I found AdGuard seems to suffer the same issue as well -- it does not report the cosmetic filters in its logger for the test case above. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The page uses document.open() to create a new document in the iframe -- that would be the reason for the mutation observer ceasing to work. |
but for some reason Google bar need CSS - This could be another threat that someone would do a similar advertising mechanism and you would have to start using more scriptlets. |
Please open a distinct issue for this with repro steps (I don't know what is "Google bar"), the issue here is for |
This comment has been minimized.
This comment has been minimized.
Generic filters still don't work. |
I was reading https://palant.info/2020/12/10/how-anti-fingerprinting-extensions-tend-to-make-fingerprinting-easier/ and came upon an example
producing:
in gorhill/uBlock#1740 I found @gorhill Does this mean scriptlets should be injecting into about:blank iFrames? Has this worked in the past? I cant get this to work. I can see in Chrome devtools about:blank iFrame context has uBO listed as injected, but my scriptlet is not executed.
defined at userResourcesLocation, My filters: "*##+js(myscriptlet)".
produces:
suggesting myscriptlet is injected into the main page, but not the about:blank iFrame |
Your scriptlet can't be injected at |
I watched a movie, came back and results are still the same. I tested old chrome 77 with uBO v1.30.6 just to be sure, still same result. I tried something different
uBlock didnt inject in this iframe at all (going by Chrome devtools console "javascript context" dropdown), not sure if its meant to since I googled up whatwg/html#1753. It did inject into srcdoc variant
still no scriptlet injections. One of the scriptlets I use for a long time starts with |
@raszpl are you using this filter with wildcard (specific-generic) Does not work on I also tried with following filters and injecting is not reported in logger on
[source not relevant] |
Can't inject in |
Specific-generic scriptlets do not work on "TLD domain only" websites, Fixed in gorhill/uBlock@b22cf24 |
are you saying your
? |
I did not checked embedded contexts. |
This does not work at all in Chrome? (Is this about this Chrome bug [edit: new way of injecting into blank frames] I cannot find now?) Testing Firefox 86: uBO rc2 logger shows three injections and console logs page, blank and srcdoc. Chrome 87.0.4280.88: only one injection, only page address logged. |
No, scriptlets are injected differently in Chromium, at webNavigation.onCommitted time (code), and the information received in such case is not the effective URL, it's just |
This is an issue in uBO affecting only Chromium-based browsers. Related feedback: uBlockOrigin/uBlock-issues#688 (comment)
Ok, now only It's after gorhill/uBlock@8d3c491, so rather expected. |
Thank you for confirmation, I was beginning to think I was going crazy. and gorhill/uBlock@990cff5 thank you @gorhill for quick fix :o
Works great now. |
Maybe I can come up with a fix for this in next dev cycle. |
srcdoc did work for me |
Closing as obsolete. Fixes were made and it's unclear if and what are the other issues left if any -- too many comments about various other stuff. Open clearly detailed and well narrow issues if there is still something to fix, and these have to be issues with real world implications. |
about:blank
iframe
Prerequisites
Description
How block social in iframes now?
A specific URL where the issue occurs
https://itsfoss.com/end-of-floppy-disk-in-linux/
old metods down...:
I no prefere AdGuard Annoyance filter:
||apester.com^$third-party
Steps to reproduce
The text was updated successfully, but these errors were encountered: