Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install

Head shrink

Removes preamble in the title on many sites

When having multiple tabs open, it is anoying to have the same preamble visible on every tab. This GM scripts removes the preamble in the title of many sites.
http://www.hinsiden.net/GMScript/headshrink.png






Mar 18, 2006
JPedro User

Great script, finally I get to see whats actually in my tabs with a just a glance.

 
Dec 12, 2005
Dan F Scriptwright

You could concatenate the first part of the regex, then d, and then the last part of the regex and use that new variable in your replacements.

 
Dec 11, 2005
Erik Taraldsen Script's author

Thanks for the feedback Dan. I'm trying to fit regexp into headshrink, but I'm having problems getting regexp understanding that it is the variable d, not the character d im trying to replace in a string.

BTW: headshrink is updated to also parse sites which starts with something other than www. For example orkutbar.mozdev.org.

 
Dec 10, 2005
Dan F Scriptwright

Great idea!

As for your lowercase problem: if you remove the toLowerCase and then do all of your replacements via regular expressions, it should work..

so foo = bar.replace(x, y) becomes:
foo = bar.replace(x, new Regexp("/www/", "i")). You would have to double check the regexp syntax tho.

 
Dec 9, 2005
Erik Taraldsen Script's author

Anybody who can help me with the expresion, so I don't have to lovercase the title is more than welcome to poste. Any other comments is of course welcome!

You could comment on this script if you were logged in.