Head shrink

By Erik Taraldsen Last update Dec 9, 2005 — Installed 1,409 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 4 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
JPedro User

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

 
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.

 
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.

 
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.

 
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!

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel