-
-
Notifications
You must be signed in to change notification settings - Fork 50
Fix uBo (network blocking) in sidebar webpages #238
Conversation
I didn't notice that at all. I never noticed this because the console was giving me an error about not having permissions as a tab. wonderful. Thank you for the information. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great news for sidebar! LGTM
This PR/issue depends on: |
If I may be so bold, 🐛 Fix uBo in sidebar webpages (#238) pulse-browser/browser@79f15ee seems to only work with 3rd party builds version, is there a way to apply this change to the official version of Firefox? |
You can edit browser/base/content/webext-panels.js in omni.ja file.
browser.setAttribute("messagemanagergroup", "webext-browsers"); replace it with: browser.setAttribute("messagemanagergroup", browsers"); finish. move edited file into omni.ja & boot firefox. |
Thanks for your pointers🌹 According to the steps you mentioned, I modified After restarting the browser (Firefox 114.0b2), the |
I will test it. |
2023-05-11.010839.mp4I think it works. but, cannnot block contents. The blocked ads number is up. |
It's a pity |
Sorry for asking, but did this really |
What are you asking "did this really" for? against my validation? Or on this PR itself? As I am Japanese, I may not be able to grasp the intentions properly. |
Hi @surapunoyousei, |
I see. We still need to make the addon work in a different way. I research it. |
Hmm... Messing around a bit, it looks like networks requests are blocked but content scripts aren't executing correctly. So, if your ads are loaded via an external script (e.g. adsense) or trackers (e.g. GA) can be easily blocked. But ads that are server side rendered (e.g. search engine ads, youtube's voodoo wizardry) can bypass adblocking. There are probably some primitives that are missing. I'll open a new issue and work on it eventually. |
@surapunoyousei you might find this interesting. The reason why ads aren't blocked in the sidebar is because the
messagemanagergroup
is set towebext-browsers
on the container<browser>
element. If you set it tobrowsers
, it treats it as a regular browser (e.g. no webext permissions, content scripts work, etc).References
Depends on #237
Fixes #157