There are 2 previous versions of this script.
// ==UserScript==
// @name isoHunt Add Common Links
// @namespace http://userscripts.org/users/23652
// @description Adds links that isoHunt should have on their site but don't
// @include http://isohunt.com/*
// @include https://isohunt.com/*
// @copyright JoeSimmons
// ==/UserScript==
var user = 'joesimmons'; // isoHunt username
var separator = '»'; // Character used to separate links
// NO EDITING BELOW ////////////////////////////////////////////////////
// Quit if in a frame
if(location.href != top.location.href) return;
// addGlobalStyle
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
var first_link_url = '/forum/login.php?redirect=/',
first_link_text = 'Login',
second_link_url = '/release/?poster=' + user,
second_link_text = 'My torrents',
third_link_url = '/member.php',
third_link_text = 'Member page';
addGlobalStyle('#ih_links a {color:#0082D9 !important; font:12px arial verdana;}');
var div = document.createElement('div');
div.setAttribute('style', 'position:fixed; top:0; right:0; color:#000; font:bold 14px arial verdana; background:#fff; padding:4px; -moz-border-radius:4px; border:1px solid #bbb;');
div.id = 'ih_links';
var a1 = document.createElement('a');
a1.href = first_link_url;
a1.textContent = first_link_text;
var a2 = document.createElement('a');
a2.href = second_link_url;
a2.textContent = second_link_text;
var a3 = document.createElement('a');
a3.href = third_link_url;
a3.textContent = third_link_text;
div.appendChild(a1);
div.appendChild(document.createTextNode(' » '));
div.appendChild(a2);
div.appendChild(document.createTextNode(' '+separator+' '));
div.appendChild(a3);
document.body.insertBefore(div, document.body.firstChild);
