rendered paste bodyGoogle Images.ieuser.js:
// ==UserScript==
// @name Google Images
// @description Adds a direct link to images in Google Images search results.
// @include http://images.google.*/*
// ==/UserScript==
(function()
{
function pointLinksToImages()
{
ImgElements = document.body.getElementsByTagName("a");
if(ImgElements)
{
for(i=0;i<ImgElements.length;i++)
{
if(ImgElements[i].href.indexOf("/imgres?imgurl=") != -1 && ImgElements[i].href.indexOf("&imgrefurl=") != -1)
{
/*var gmatch = null;
var target = ImgElements[i].getAttribute("target");
if (!target)
target = "";
*/var originPage = null;
gmatch = ImgElements[i].href.match(/\&imgrefurl\=(.*?)\&h=/);
if (gmatch)
originPage = unescape(gmatch[1]);
var originImage = null;
gmatch = ImgElements[i].href.match(/\/imgres\?imgurl\=(.*?)\&imgrefurl\=/);
if (gmatch)
{
originImage = unescape(gmatch[1]);
ImgElements[i].href = originImage;
var div = document.createElement('div');
var s = '<span style="font-family:\'Trebuchet MS\', sans-serif; font-size:11px;">';
if (originPage)
s += '<a style="color:#CC3300;" href="'+originPage+'" title="'+originPage+'">' + "[Source]" + '</a>';
s += '</span>';
div.innerHTML = s;
ImgElements[i].parentNode.appendChild(div);
}
}
}
}
}
pointLinksToImages();
}
)();
Hotmail.ieuser.js:
// ==UserScript==
// @name Hotmail
// @description Removes ads from Hotmail.
// @include http://*.mail.live.com/*
// @include https://*.mail.live.com/*
// @include http://mail.live.com/*
// @include https://mail.live.com/*
// @injectframes 1
// ==/UserScript==
// Remove Quick Add.
var QAPane = document.getElementById("IAPWrapper");
if (QAPane != null)
QAPane.parentNode.removeChild(QAPane);
// Expand panes.
var mcStyle = document.getElementById('MainContent').style;
var mcwStyle = document.getElementById('ManagedContentWrapper').style;
mcStyle.right = '0px';
mcwStyle.right = '0px';
mcStyle.marginRight = '1px';
mcwStyle.marginRight = '1px';
YouTube.ieuser.js:
// ==UserScript==
// @name YouTube
// @description Displays the high quality video format on YouTube.
// @include *youtube.com/*v=*
// ==/UserScript==
var dURL = document.URL, // This gets the URL of the page that the YouTube video is on.
newURL; // This variable will hold the modified URL that will switch the video quality.
if (!dURL.match('&fmt=' + 18))
{
(dURL.match('&'))? newURL = dURL.replace(/&/, '&fmt=' + 18 + '&'): newURL = dURL + '&fmt=' + 18;
window.location.replace(newURL);
}