Sam's Greasemonkey Scripts

So far there is just one script here. I'll add more as I write them.

Deframe Social

I don't like the frames around pages. The break scrolling and waste screen space, so I want to remove them before adding the links to my News list. I love Deframe, but it doesn't work on link.social.com links. The reason it fails was not obvious to me immediately, but link.social.com pages are really long and complicated, so I'm not surprised it gets lost.

However, I looked at a page like this one and I saw that the title bar contains three space-delimited words. The first one is the name of the person sharing the link, the second word is shared, and the third one is the URL to go to. Therefore this GreaseMonkey script does the job:

// ==UserScript==
// @name           deframesocial.user.js
// @namespace      http://samsclass.info
// @description    Deframe for social
// @include        http://link.social.com/*
// ==/UserScript==

var splits = document.title.split(" ")

if (splits[1] = 'shared') {
  document.location.href = splits[2];
  }
	

Click here to install the script.

Of course, you need to have Greasemonkey installed first.

Last modified 7-1-10