GreaseMonkey

Longman clug at gasops.co.uk
Mon Jun 29 16:04:10 CEST 2009


* Marcus Williams wrote:
> Peter Grandi wrote:
>>> [ ... ] script which set background of all texarea and input
>>> element to black and foreground to white. Any suggestion?
>> It may be more appro[riate to use CSS overrides ('userChrome.css').
> 
> My bugbear with userChrome is you cant target certain sites with it 
> (unless they include a css signature [1]) and I'm not sure if you have 
> to restart the browser to get it included. Greasemonkey (and its css 
> equivalent Stylish [2]) get around this.
> 

Well I manage to target a specific site using the following. I disable
the 'Upgrade your account' button since the upgrade actually puts you on
worse interest onto an account that charges a monthly fee. Each time I
see the 'Upgrade' button it peeves me somewhat, so I make it ghost:

@-moz-document domain(lloydstsb.co.uk)
{
  a[title="Upgrade your account"] {display: none}
  /* table>tbody>tr>td>table>tbody>tr>td {display: none} */
  .bannerTable {display: none;}
  #myoffers {display: none;}
/* this is a CSS 3.0 thing not supported by firefox  tbody:nth-child(5)
{display: none;} though can leave it here until it is then we can
uncomment it*/
/* offers are usually in a different colour to alternate the shades of
the grid */
  .prodDetail[bgcolor="#eeeeee"] {display: none;}
  .prodDetailNoRB[bgcolor="#eeeeee"] {display: none;}
}



More information about the CLUG mailing list