-
Notifications
You must be signed in to change notification settings - Fork 60
[Feature request] Add an option to hide sponsored posts / ads #94
Comments
Seconded. |
I don't know much about android development, but I guess the "dark theme" and "fixed blue bar" options are implemented by injecting CSS into the page. I've looked in the EasyList block list and found these 8 element hiding rules for m.facebook.com
If I'm not mistaken this corresponds to injecting the following CSS into the m.facebook.com webpage
I've tested this using Stylish on the desktop and all the ads on m.facebook.com were gone (tbh only the fist selector seemed to do something during my short test) I think implementing this feature can be quite easy, the only possible drawback is that these rules need to be kept up to date if facebook updates its site. |
Cheers. Will try these with AdAway and update this thread for reference (or for a workaround if not possible to block the sponsored posts in Face Slim). |
I don't think AdAway can do this, I think AdAway only blocks domains (eg. Imagine facebook stores all it's ads on something like FacebookAdServer.com and Facebook.com loads ads from there. AdAway can block all requests to FacebookAdServer system wide, so you wont see ads on facebook) but sponsored posts are directly embedded in the web page (they come from the same domain than normal facebook posts), thus these ads can't be stopped system wide (without blocking facebook completely), they need to be hidden by the application themselves (using something like CSS). |
It can be done for sure. I can modify css. Just give me some time. Busy pt., 1.01.2016, 10:51 robrobinbin użytkownik [email protected]
|
I'm afraid it only works for the first section. Dynamically loaded items cannot be styled. But... most of ads are at the top of the page. Am I right? I hope it works. Didn't tested yet. |
Is everything ok? Can I close it now? |
Not good :( I think ads cannot be hidden for a dynamically loaded content. So in fact it only disables some of the sponsored posts. Only ads at the top of the page should be gone. Are there any ads for a statically loaded content (e.g. top of the page, after refresh)? |
I had to scroll down quite a bit to find an ad, but I opened m.facebook.com in a normal (non ad blocked) browser and I had to scroll down just as far (there weren't simple any sponsored posts earlier). I think yesterday I had an ad higher up, but I'm not sure. Why is it that dynamically loaded content can't be hidden? When you enable night mode dynamically loaded comments are also styled. Sadly I don't know much about android development and I don't have the right IDE's installed. When you change |
I will test it (red backgrounds). wt., 12.01.2016, 21:27 robrobinbin użytkownik [email protected]
|
Can you also try to hide "Install fb messenger!!!1eleven" banners? :D |
Sure. I will hide it by default today. |
Can we close this? Thanks to your work, it's been a month I haven't see any ads on Face Slim. |
Yeah. I wanted to make sure it's working. Great! :) |
No description provided.
The text was updated successfully, but these errors were encountered: