How to block base64 images? #1260

Closed
flyingzebras opened this Issue Jan 20, 2016 · 10 comments

Comments

Projects
None yet
2 participants
@flyingzebras

How do I block data:image/jpeg;base64?. www.gaytube.com##img[src^="data:"] didn't help, something I learned from http://support.getadblock.com/discussions/problems/73821-cant-block-a-dataimagepngbase64-encoded-and-added-images

Example 1:
This issue appear on the bottom of the main page of gaytube.com. If I block the image with uBlock Origin, it will reappear!

Example 2:
This issue appear on the main page of gaytube.com in the middle of the screen next to "Full Videos".

Example 3:
This affect all video pages. See http://www.gaytube.com/media/1033912/barebacking_ama/ for example.

First block the ad banner to the right with www.gaytube.com##.text-center.rkl-block.

After that one of the single images will be seen, as a background image. View Background Images redirect me to data:image/jpeg;base64,/9j/4QAYRXhpZgAA......so on

@gorhill

This comment has been minimized.

Show comment
Hide comment
@gorhill

gorhill Jan 20, 2016

Owner

I tried google.ca##[src^="data:"] on https://www.google.ca/search?q=cat&tbm=isch and it worked fine. If you want to block a background image which URL is data:, you will have to block the element itself using a CSS rule.

Btw, I didn't go to gaytube.com, find another site next time if you want to file an issue. I reserve the right to not have to visit every single site out there to investigate claimed issues.

Owner

gorhill commented Jan 20, 2016

I tried google.ca##[src^="data:"] on https://www.google.ca/search?q=cat&tbm=isch and it worked fine. If you want to block a background image which URL is data:, you will have to block the element itself using a CSS rule.

Btw, I didn't go to gaytube.com, find another site next time if you want to file an issue. I reserve the right to not have to visit every single site out there to investigate claimed issues.

@gorhill gorhill closed this Jan 20, 2016

@flyingzebras flyingzebras referenced this issue in reek/anti-adblock-killer Jan 20, 2016

Closed

gaytube.com #962

@flyingzebras

This comment has been minimized.

Show comment
Hide comment
@flyingzebras

flyingzebras Jan 20, 2016

@gorhill I just found out that these base64 background images are injected with JS.

@gorhill I just found out that these base64 background images are injected with JS.

@gorhill

This comment has been minimized.

Show comment
Hide comment
@gorhill

gorhill Jan 20, 2016

Owner

Do these background images stop if you block inline script?

Owner

gorhill commented Jan 20, 2016

Do these background images stop if you block inline script?

@flyingzebras

This comment has been minimized.

Show comment
Hide comment
@gorhill

This comment has been minimized.

Show comment
Hide comment
@gorhill

gorhill Jan 20, 2016

Owner

Give me a URL to a view-source: page with the issue, I will see what can be done from the source code. Never mind, I used source of the link in your 1st comment.

Owner

gorhill commented Jan 20, 2016

Give me a URL to a view-source: page with the issue, I will see what can be done from the source code. Never mind, I used source of the link in your 1st comment.

@gorhill

This comment has been minimized.

Show comment
Hide comment
@gorhill

gorhill Jan 20, 2016

Owner

If using Firefox, you can try: gaytube.com##script:contains(data:image/).

Owner

gorhill commented Jan 20, 2016

If using Firefox, you can try: gaytube.com##script:contains(data:image/).

@flyingzebras

This comment has been minimized.

Show comment
Hide comment
@flyingzebras

flyingzebras Jan 20, 2016

@gorhill That did not block them.

@gorhill That did not block them.

@gorhill

This comment has been minimized.

Show comment
Hide comment
@gorhill

gorhill Jan 21, 2016

Owner

Does gaytube.com##script:contains(PHENV.onDetection) work?

Owner

gorhill commented Jan 21, 2016

Does gaytube.com##script:contains(PHENV.onDetection) work?

@flyingzebras

This comment has been minimized.

Show comment
Hide comment
@flyingzebras

flyingzebras Jan 21, 2016

@gorhill Yes that works.

There is no need to use filter www.gaytube.com##.text-center.rkl-block, just use gaytube.com##script:contains(PHENV.onDetection)

@gorhill Yes that works.

There is no need to use filter www.gaytube.com##.text-center.rkl-block, just use gaytube.com##script:contains(PHENV.onDetection)

@flyingzebras

This comment has been minimized.

Show comment
Hide comment
@flyingzebras

flyingzebras Mar 2, 2016

assets/ublock/filters.txt now block the base64 images on gaytube.com with

filmvf.net,filmstreaming-hd.com,gaara-fr.com,gaytube.com,gum-gum-streaming.com,hentaifr.net,hentaihaven.org,narutoshippudenvf.com,tuxboard.com,xstory-fr.com##script:inject(phenv-defuser.js)

Thanks!

assets/ublock/filters.txt now block the base64 images on gaytube.com with

filmvf.net,filmstreaming-hd.com,gaara-fr.com,gaytube.com,gum-gum-streaming.com,hentaifr.net,hentaihaven.org,narutoshippudenvf.com,tuxboard.com,xstory-fr.com##script:inject(phenv-defuser.js)

Thanks!

gorhill pushed a commit that referenced this issue Sep 26, 2016

Merge pull request #1260 from Guria/patch-1
russian translate improvement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment