rendered paste body// ==UserScript==
// @name Webshots Antisocial(test)
// @namespace userscripts.org
// @description Removes the social aspects of the site
// @include http://*.webshots.com/*
// ==/UserScript==
var GM_JQ = document.createElement('script');
GM_JQ.src = 'http://code.jquery.com/jquery-latest.pack.js';
GM_JQ.id = 'jQs';
GM_JQ.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(GM_JQ);
// Check if jQuery's loaded
function GM_wait() {
if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(GM_wait,100); }
else { $ = unsafeWindow.jQuery; letsJQuery(); }
}
GM_wait();
// All your GM code must be inside this function
function letsJQuery() {
if(document.URL.indexOf("community") > -1){
var holdTemp = $('#box2').clone();
$('body').html(holdTemp);
$('.searchLink, script:not(#jQs)').remove();
$('.options ul').remove();
$("#box2, #page-navHolder, #albums").css("width","auto");
}
else if(document.URL.indexOf("good-times") > -1){
var holdTempAlbum = $('#album').clone();
$('body').html(holdTempAlbum);
$('script:not(#jQs), .buttons').remove();
$('#album, #media').css("width","auto");
$('.header').css("textAlign","center");
$('#media ul').css("clear","none");
if($('#album').attr("class") == "info"){
$('#album').attr("class","grid");
$('dd:first,dd:last').empty();
var newNav = $('#alt-nav')[0].childNodes[0].nodeValue;
var links = $.grep( $(newNav), function(i){return i.href;});
links.pop();
links.each(function(i){
$.get(i.href, function(data){
var trimmedToList = $(data.slice(data.indexOf('\<div id="media">'),data.indexOf('\<div class="description">'))).html();
$('#media').append(trimmedToList);
});
});
}
}
else {
var imageFull = $('#sidebar .view-actions .fullsize a')[0].href;
$('body').html('<img src="'+imageFull+'" />');
}
}