Google ReBar

By William Rawls Last update Aug 31, 2009 — Installed 1,716 times. Daily Installs: 1, 3, 0, 0, 1, 2, 3, 1, 4, 2, 2, 0, 2, 1, 2, 1, 2, 2, 0, 0, 1, 1, 2, 2, 2, 1, 2, 1, 0, 1, 5, 2
Script Summary:
v1.19: Added imeem (bipolar+) searching imeem music Added Styles (bipolar+) searching Stylish's userstyles (thanks to LL25255252) Added AMO (bipolar+) searching addons.mozilla.org (thanks LL25255252) Excluded docs.google.com (thanks LL25255252... what kind of username is that ;) Excluded voice.google.com Changed namespace to rebar.william-rawls.info Updated my info (re)Added Google voice link (Crazy+) Google Voice, Google Groups, Google Blogs, and Google Code only appear if crazy+ or if google only Moved YouTube next to Videos where it belonged Made 'code' related stuff bipolar+ Rearranged a couple tags Renamed imDB to Movies

Script homepage

Recently Updated TopicsPosts
adding Google Docs to the e...3
Suggestion - add "Styles" &...2
Archived Comments3

this script has 3 topics, 8 posts

Review Summary
5 stars
1 reviews (1)
4 stars
0 reviews (0)
3 stars
0 reviews (0)
2 stars
0 reviews (0)
1 star
0 reviews (0)

this script has 1 review

Thumb

NOTE: UNINSTALL OLDER VERSIONS !!!
NOTE: UNINSTALL OLDER VERSIONS !!!

NOTE: Click the new circled plus sign in the upper left corner of the google page to access the options. Play with combinations such as Quiet + Google Only, Tame - Google Only (the default), Crazy + Google Only, Crazy - Google Only, and Insane.
Currently levels at and above Insane don't do anything, but

On all Google pages we have these cool links that let use repeat our search on various parts of the Google site.
I wanted to add my own links. This kinda grew from my desire to have the 'products' link on every page and grew to include basically generically adding links to several Google parts (Shopping, Videos, and Groups) and to repeat the current search on eBay or Amazon (cause I use those so much). The first lines of script do the adding, so you can add or remove your own links.

An example bar from the Google main page would look like:
Web Images Maps News Shopping Gmail Video Groups eBay Amazon more

Currently can add the following links 

when dontGoCrazy = true:
  Google
    Shopping
    Video
    Images
  eBay
  Amazon
  Wiki
  Scripts     (userscripts.org)
  Dictionary  (dictionary.com)
  
when dontGoCrazy = false; (crazy mode ;) - everything above plus
  Google
    Groups
    Blogs
    Code
  YouTube
  Answers

I'm considering adding an insane, bipolar, and OMG mode... someone stop me :)

Ideas?

// 1.16
//      Works with google's new layout
// 1.15
//      Firefox 3 compatibility
//
// 1.14
//	Firefox 3 RC2 tested
// 1.13
//	Added the removeGoogleLInk() function.
//  Removes the word "Web" from the gbar when it's not a link. (Crazy mode+)
//  Added commented out examples for removing google links
//
// 1.12
//	Clicking the word 'Rebar' in the options dialog takes you to 
//	 the ReBar script page on userscripts.org
//	Fixed namespace. NOTE This will require you to uninstall other version of 
//	 Google ReBar. My apologies. I didn't realize this would have this effect.
//
// 1.11
//	Added user interface for setting up options. 
//	NOTE: Click the new circled plus sign in the upper left corner of the google 
//	  page to access the options.
//	Fixed an issue where links wouldn't click if debug mode was off (DOH)
//
// 1.10
//	Added
//		Link: imDB (crazy+)
//		grNav() function - whenever a click occurs it occurs through here now to facilitate better link handling,
//			especially when the query is empty (userscripts.org for instance).
//			 tags are now DOM constructed allowing proper callback into the sandbox.
//		defaultSearchTerms - when a link is clicked and there no search terms entered, defaultSearchTerms will be used.
//		GM_getValue support for all the settings
//		GM_log support (basically set debugLevel = 5 and open the javascript console)
//		The customUrl parameter on the addCustomeUrl method now supports javascript: and will allow urls to optionally include http:
//			this facilitates including items that you may want to custom code or to use https with
//		linkTarget - Set to have links open in new windows (_blank by default)
//		ScriptletStyle - A new style for links that execute javascript.
//
//	Changes
//		[SearchTerms] to [Query] to make it shorter
//		onFailUrl to onFailParams to accept far less information or full url template
//		dontGoCrazy to Craziness to facilitate new levels of crazyness.
//			0 queit
//			3 tame    the default
//			4 crazy   currently supported
//			6 bipolar (before you start,i'm bipolar so it's cool, probably what got me going anyway :)
//			8 insane
//			9 omg
//		  This sets the stage for changing modes on the fly. skipped values are for future use
//
//	Fixed
//		Error in some parameters passed 'on fail' (which lead to the change above)
//
//	Also Comments and code cleaned up a bit
//
// 1.07
//	Added
//		dontGoCrazy - Only adds "most useful" links. set to true to get a lot more links and start custimizing :)
//		GoogleStyle - style attributes for links that go to google (sub) searches
//		CustomStyle - style attributes for links to third party searches
//		AffiliateStyle - style attributes for links to third party affiliate links (currently only Amazon)
//		BaseStyle - style applied to all links. 
//		no other style elements are applied
//
// 1.06
//	Added 
//		Userscripts.org
//		allowAffiliate - set to false if you don't want me to make any money :)
//		allowLinkStyling - set to true if you want to see what's getting added
//		googleOnly - set to true if you don't wany anything but the additional google links
//		More code comments - like this
//	Fixed error in addCustomLink
//
// 1.05 - Added Wikipedia
//			cleaned up entries and code to make it a bit easier to modify / use.
//
// 1.04 - excluded Gmail (doesn't seem to play well and I don't wanna cause issues)
//