Mask Embarrassing Tab Titles

By brad.tee Last update Jun 26, 2010 — Installed 599 times.

array suggestion

in
Subscribe to array suggestion 2 posts, 2 voices



Avindra V.G. Scriptwright

first of all, lol @ the script, hilarious idea.

i just had a suggestion about the array declaration. I usually do mines like:

var fakesites = [
"Google Search",
"Amazon.com: Online Shopping for Electronics, Apparel",
"Google Notebook",
"Welcome to StumbleUpon",
"Newegg.com - Computer Parts, PC Components, Laptop",
"Userscripts.org",
"SQL Tutorial",
"Google Maps",
"Mozilla.org - Home of the Mozilla Project",
"Gmail - Inbox",
"Main Page - Wikipedia, the free encyclopedia",
"The Internet Movie Database (IMDb)", "Google News",
"Firefox Add-ons",
"Digital Blasphemy 3D Wallpaper"
]

I think it reads better, idk. Plus you don't have to manage all the indices.

 
JoeSimmons Scriptwright
FirefoxWindows

I agree, the commas should come after the string. The array literal declaration I couldn't care less about, but commas before the string is pretty confusing and backwards to what most scripters are used to.

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