Remove Pesonalised Search Greasemonkey Script

I just knocked up a quick Greasemonkey script to add a “Remove customisations” link next to the “View customizations” (customisations) link that appears when Google is tailoring your results based on your search history.

This is particularly useful if, like me, you want to know when this kind of thing is happening and need and quick way to remove it.  Yes, you can disable it but this gives you a more granular option.

So, here you go..

// ==UserScript==
// @name           Remove Google Customisations
// @description    Adds link to remove personal customisations from Google searches
// @include        http://www.google.co.uk/search?*q=*
// ==/UserScript==

window.addEventListener('load', function() {
	var d=document;
	var n;var as=d.getElementsByTagName('a');
	for(var i=0;i<as.length;i++){
		if(/View customi(s|z)ations/.test(as[i].textContent)){
			n=as[i];
			break;
		}
	}
	if(n){
		var a=d.createElement('a');
		a.href=d.location.href+'&pws=0';
		a.innerHTML='Remove customisations';
		n.parentNode.insertBefore(a,n.parentNode.firstChild);
	}
}, true);

That should do it.. I do have a bookmarklet version to if anyone wants it posted.

add to del.icio.us :: Bookmark Post in Technorati :: Add to Blinkslist :: add to furl :: Digg it :: add to ma.gnolia :: Stumble It! :: add to simpy :: seed the vine :: :: :: TailRank :: post to facebook :: Bookmark on Google :: Add to Netscape :: Share on Yahoo :: Add this to Live

Advertisements

Social bookmarks greasemonkey script updated

I’ve just updated my hosted wordpress social bookmarks script again.

This update just makes it work with the wordpress admin update.  Sorry for the delay on updating this.

If you’re using this greasemonkey script, you may want to grab the update.

add to del.icio.us :: Bookmark Post in Technorati :: Add to Blinkslist :: add to furl :: Digg it :: add to ma.gnolia :: Stumble It! :: add to simpy :: seed the vine :: :: :: TailRank :: post to facebook :: Bookmark on Google :: Add to Netscape :: Share on Yahoo :: Add this to Live

Social bookmarks greasemonkey script updated

Just a quick post to say I’ve updated the hosted wordpress social bookmarks script I wrote back along.  If you’re using this greasemonkey script, you may want to grab the update.

I’ve simply updated the links to all have rel=”nofollow” which they should be really (IMO).

add to del.icio.us :: Bookmark Post in Technorati :: Add to Blinkslist :: add to furl :: Digg it :: add to ma.gnolia :: Stumble It! :: add to simpy :: seed the vine :: :: :: TailRank :: post to facebook :: Bookmark on Google :: Add to Netscape :: Share on Yahoo :: Add this to Live

Social bookmarks on hosted wordpress

Earlier today, I realised I was missing out an all the social media hoohah by not having nice links at the bottom of my posts. You know the ones, add to this, post to that, etc.

So, I googled for something to achieve this (on wordpress.com rather than self-hosted) and came across a pretty nifty solution here. This involves keeping a template file and fiddling about doing a search and replace in a text editor and pasting the result back in to your post. You obviously have to remember to do this for each post you write. Although this is a perfectly good solution, I’m a bit lazy and thought I’d see if I could come up with something a bit quicker.

I decided to see if I could use a GreaseMonkey script to do it. After much fiddling, I’ve come up with this

Social Bookmarks Preview

My script inserts an extra section between the post body and the tags section. When you click the heading it generates a block of HTML using Archgfx’s template mentioned earlier.

Social Bookmarks in hosted wordpress

You can then click in the newly inserted textarea, copy the code and paste it in to your post (HTML view, add to the bottom of your post).

This is the first GreaseMonkey script that I’ve written so it’s not going to be that ‘elegant’, suggestions for improvement are appreciated.

I plan to make improvements to it when I get a chance so keep an eye out here for updates.

You can grab the script here (you’ll obviously need to install GreaseMonkey to use it!)

I’d like to get it to insert the code directly in to the textarea, but my knowledge of hacking tinyMCE is pretty much non-existent.

add to del.icio.us :: Bookmark Post in Technorati :: Add to Blinkslist :: add to furl :: Digg it :: add to ma.gnolia :: Stumble It! :: add to simpy :: seed the vine :: :: :: TailRank :: post to facebook :: Bookmark on Google :: Add to Netscape :: Share on Yahoo :: Add this to Live