Skip to content
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

Vieb 12.0.0 adblocker prevents some sites from loading #563

Open
HashData opened this issue May 24, 2024 · 5 comments
Open

Vieb 12.0.0 adblocker prevents some sites from loading #563

HashData opened this issue May 24, 2024 · 5 comments
Labels
bug Something isn't working help wanted Help wanted with this issue, so PRs are encouraged! workaround A workaround is available for this issue

Comments

@HashData
Copy link

Some websites such as amazon.com and youtube.com don't load on Vieb 12.0.0 but they do on 11.0.0. This is the error message:

[522542:0521/161254.205774:ERROR:atom_cache.cc(229)] Add _NET_WM_STATE_MODAL to kAtomsToCache
MESA-INTEL: warning: Haswell Vulkan support is incomplete
libva error: /usr/lib/x86_64-linux-gnu/dri/iHD_drv_video.so init failed
Error occurred in handler for 'GUEST_VIEW_MANAGER_CALL': Error: Script failed to execute, this normally means an error was thrown. Check the renderer console for the error.
at node:electron/js2c/renderer_init:2:16470
at IpcRendererInternal. (node:electron/js2c/renderer_init:2:10723)
at IpcRendererInternal.emit (node:events:518:28)
at Object.onMessage (node:electron/js2c/renderer_init:2:8837)
Error occurred in handler for 'run-isolated-js-head-check': Error: Script failed to execute, this normally means an error was thrown. Check the renderer console for the error.
at node:electron/js2c/renderer_init:2:16470
at IpcRendererInternal. (node:electron/js2c/renderer_init:2:10723)
at IpcRendererInternal.emit (node:events:518:28)
at Object.onMessage (node:electron/js2c/renderer_init:2:8837)

Specs

  • OS: Ubuntu
  • Version: 22.04.4 LTS
@HashData HashData added the bug Something isn't working label May 24, 2024
@Jelmerro Jelmerro changed the title Vieb 12.0.0 electron error Vieb 12.0.0 adblocker prevents some sites from loading May 26, 2024
@Jelmerro Jelmerro added help wanted Help wanted with this issue, so PRs are encouraged! workaround A workaround is available for this issue labels May 26, 2024
@Jelmerro
Copy link
Owner

This seems to be not our issue, as this is solved when turning off the adblocker. I can reproduce your stacktrace for different sites. Seems like the adblocker module broke something very badly by updating the resources file recently. For now you can temporarily disable the adblocker before visiting these sites. Please if you have to time try to reproduce the issue with this project and then report the issue in that repo.

@se7en-x230
Copy link

Same problem now for FB. Disabling adblock works

@jkarstens
Copy link

jkarstens commented Aug 11, 2024

Disabling adblocker does allow YouTube (et al) to load, but I think the issue might be in this repo.
In the devtools console on YouTube with adblocker enabled I see

Uncaught TypeError: Cannot read properties of null (reading 'innerText')

This console error goes away when adblocker is off (and the site loads normally)

Looks like this may be because document.head is null with the adblocker enabled which causes this line to error?

webview.executeJavaScript("document.head.innerText").then(() => {

YouTube with adblocker:
image (23)
image (24)

YouTube without adblocker:

image (25)
image (26)

@purgat0ri
Copy link

^ That would explain why one is still able to view embedded YouTube videos (e.g., https://www.reddit.com/r/planetemacs/comments/1eqqkhf/emacs_way_of_reading_novels_and_books_via_epub/) with adblockers enabled, even though the YouTube site does not load at all.

@Jelmerro
Copy link
Owner

I narrowed this down to the resources being loaded into the adblocker, not the entire adblocker, though once I remove them any video is blocked by requiring to "sign in to confirm i'm not a bot", so I'm not going to spend much time on this as it seems kind of pointless to use youtube directly like this, I'll continue to recommend invidious over plain youtube for this reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Help wanted with this issue, so PRs are encouraged! workaround A workaround is available for this issue
Projects
None yet
Development

No branches or pull requests

5 participants