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
|
|
Great script, finally I get to see whats actually in my tabs with a just a glance. |
|
|
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. |
|
|
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. |
|
|
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:
|
|
|
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.
