Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
CSS doesn't truly block anything on the page; it only modifies how the content is displayed, including hiding it from view. But the code for the object is still there embedded in the page.
So if all you want to do is hide the things from view, you can usually do it with css. But each site and object would likely have to be coded for individually. You'd have to learn some of the basics of css scripting and how to use the dom inspector.
The stylish extension provides a much more convenient way to use css than userContent.css, and there may already be scripts available for some sites.
RIP (remove it permanently) hides content in a way similar to css, and can be used in a point-and-click manner to hide content.
To actually keep widgets from phoning home, if that's a concern for you, you'd need to find some way to disable the scripts they use.
Noscript can keep most button scripts from functioning, but I don't think it can hide them from display usually.
I imagine there are probably also greasemonkey scripts already available for many sites. Since the javascript greasemonkey uses is capable of rewriting page content on the fly, it's able to modify or delete objects.
Adblock can block objects from being downloaded in the first place, as well as hide them. But it usually only works on simple image objects and iframes. It may or may not be able to affect hovering toolbars like the one at the above link, which are created using a combination of html and css.
A possible higher-level approach that would work in all browsers would be to use privoxy or a similar filtering proxy. Again, filters would probably have to be coded by hand for each site you want to modify.
Is this something NoScript might be able to handle?
I don't know. I use NoScript. I don't think the widget bars are created through JavaScript. I have very few sites white listed in NoScript. I see these widget bars appear in sites not in my white list.
Quote:
CSS doesn't truly block anything on the page; it only modifies how the content is displayed, including hiding it from view. But the code for the object is still there embedded in the page.
I will settle with hiding. I doubt these widgets use any bandwidth to be concerned about. I just find them a nuisance and in the way of my viewing the page.
Quote:
Wonder if a good hosts file can stop part of it?
I use a secondary hosts file along with dnsmasq to block nefarious URLs. Works wonderfully. In the case of the sample link in my original post, the bar's functionality seems to be derived from addthis.com and JavaScript. I also have iframes disabled in NoScript. As I do not have usatoday.com in my NoScript white list, I am not concerned about the bar doing anything. I tried blocking the entire addthis.com domain to no avail. The widget still appears. I temporarily disabled JavaScript and NoScript (and restarted Firefox) and the widget still appears. I'm guessing the bar appears as a function of html and css.
I prefer not to run Yet Another Extension to block these widgets. I don't mind adding something to my usercontent.css. I already have a decent collection of exceptions/overrides. I know little about css and I do not know which element in the usatoday css files to block/hide/modify.
Chrome has an addon called Widgetblock. Sounds exactly what Firefox needs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.