OT: How to use GreaseMonkey to customize webpages?

OT: How to use GreaseMonkey to customize webpages?

Postby BobAGI » Thu Jun 04, 2015 12:22 pm

Hi,
last year when the problems were rampant on the Microchip forum I learned how to customize the forum webpages in order to make the Firefox tabs useful.
The idea was to use GreaseMonkey to block the extra fluff at the start of the titles and get the subject at the start, thus ensuring the tabs did not all show the same text.
This has worked fine for me on other forums as well.

I don't anymore remember who gave the advice, but I would like to connect again for some forum unrelated tips (hence the OT marker)....

I have a problem with a news website I frequently read in that links from the first page nowadays often go to pages with the text I want to read but which also contain videos which are set to start playing immediately.
The result is that instead of showing the text I want to read the browser is busy downloading this sizable video file for display. :(
And worse, the video is not possible to stop until it is fully downloaded and starts playing! Not good when you are on a mobile broadband account with limited data per month.....
Not to speak of the other family members who are sleeping when I read the news and awake by the video noise!

So I was wondering if GreaseMonkey could be used to simply block the browser from handling videos on these pages?
If so how?
TIA
--
Bo B
Sweden & Texas
User avatar
BobAGI
Verified identity
 
Posts: 49
Joined: Sun May 25, 2014 2:28 pm
Location: Sweden and Texas
PIC experience: Professional 5+ years with MCHP products

Re: OT: How to use GreaseMonkey to customize webpages?

Postby ric » Thu Jun 04, 2015 12:45 pm

I think it was Ian.M who did most of the GreaseMonkey work.
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 454
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

Re: OT: How to use GreaseMonkey to customize webpages?

Postby Ian.M » Mon Jun 08, 2015 12:31 am

Greasemonkey wont work for this because there are so many different video hosting sites and ways of inserting them in a third party page. you'd end up with a massive unmaintainable script slowing your browsing down on every page.

I would suggest FlashBlock: https://addons.mozilla.org/en-us/firefox/addon/flashblock/

It stops all Flash objects from loading unless you explicitly click to start them. You can whitelist any site you need that it causes problems with.

If you still have problems with videos playing automatically on particular sites, you can block them from loading unwanted types of content with Adblock Plus, but you will have to do a bit of digging to find the URL of the content to block then write a rule to match anything similar.
Ian.M
Verified identity
 
Posts: 94
Joined: Wed May 28, 2014 12:47 am
PIC experience: Professional 1+ years with MCHP products

Re: OT: How to use GreaseMonkey to customize webpages?

Postby jtemples » Mon Jun 08, 2015 12:54 am

It stops all Flash objects from loading unless you explicitly click to start them. You can whitelist any site you need that it causes problems with.

That's built in to Firefox. Just go to Plugins and select "Ask to Activate" for Flash.
jtemples
Verified identity
 
Posts: 173
Joined: Sun May 25, 2014 2:23 am
Location: The 805
PIC experience: Professional 5+ years with MCHP products

Re: OT: How to use GreaseMonkey to customize webpages?

Postby Ian.M » Mon Jun 08, 2015 2:09 am

I don't keep track of current Firefox features as I am actually a K-Meleon user. However is that 'Ask to Activate' setting configurable on a per-site basis?
Ian.M
Verified identity
 
Posts: 94
Joined: Wed May 28, 2014 12:47 am
PIC experience: Professional 1+ years with MCHP products

Re: OT: How to use GreaseMonkey to customize webpages?

Postby jtemples » Mon Jun 08, 2015 4:52 am

When a site has Flash, Firefox prompts "Allow now, or always allow?" The "always allow" permission is stored per-site.

This feature is available for all plugins, not just Flash.
jtemples
Verified identity
 
Posts: 173
Joined: Sun May 25, 2014 2:23 am
Location: The 805
PIC experience: Professional 5+ years with MCHP products


Return to Suggestions

Who is online

Users browsing this forum: No registered users and 8 guests

cron