By sizzlemctwizzle
Has 14 other scripts.
// ==UserScript==
// @name UnFuck Facebook
// @namespace http://userstyles.org/styles/4205
// @description This script is for anyone who is sick and tired of having to navigate through all the useless apps and spam on Facebook. Updated for the new Facebook Design
// @version 2.0.6
// @include http://*.facebook.com/*
// @include https://*.facebook.com/*
// ==/UserScript==
scr_name='UnFuck Facebook';
scr_version='2.0.6';
scr_id='11992';
(function() {
var css = "@namespace url(http://www.w3.org/1999/xhtml); #right_column { width: 77% !important; } div[id^=\\"box_app\\"]:not(#box_app_2297529396):not(#box_app_2305272732):not(#box_app_2309869772):not(#box_app_2327158227):not(#box_app_2341989679):not(#box_app_2347471856):not(#box_app_2356318349):not(#box_app_2361831622):not(#box_app_2407511955):not(#box_app_2503140832):not(#box_app_2719290516):not(#box_app_2392950137), .gifts_received, .wall_contextual_extra, .nextstep, .app_icon_row, .invitefriends, #ssponsor, div[class$=\\"_ad\\"], .divider_bar, .more_section, #ssponsor, .fbpage_fan, .pymk, .ad_capsule, .see_more_arrow, #more_apps_divider_narrow, .platform, .profile_empty_divider, .newstuff, .app_install_story, .fbnew_preview_bar, .story_type_49, .adcolumn, .social_ad, .sponsor, #attachment_buttons_list span[style*=\\"app_\\"], .qsearch_button { display: none !important; } #expandable_more { display: block !important; padding-top: 0px !important; } .footer_ad { display: none !important; }";
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
heads[0].appendChild(node);
}
}
})();
// Auto update script
// I know everyone and their mother has wrote one, but I thought I'd toss my hat in
if (self.location == top.location) {
if (GM_getValue('updated', 0) == 0) {
GM_setValue('updated', Math.round(new Date().getTime() / 1000));
} else if (GM_getValue('updated', 0) != 'off') {
GM_registerMenuCommand("Auto Update "+scr_name, function(){GM_setValue('updated', Math.round(new Date().getTime() / 1000));});
}
if ( (Math.round(new Date().getTime() / 1000) > (GM_getValue('updated', 0) + 6)) && (GM_getValue('updated', 0) != 'off') ) {
GM_xmlhttpRequest({
method: 'GET',
url: 'http://userscripts.org/scripts/review/'+scr_id+'?format=txt',
headers: {
'User-agent': 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11',
'Accept': 'application/atom+xml,application/xml,text/xml',
},
onload: function(xpr) {
version=/scr_version='(.*)';/i.exec(xpr.responseText);
scr_name=/scr_name='(.*)';/i.exec(xpr.responseText);
if ( (version[1] != scr_version) && (confirm('A new version of the '+scr_name[1]+' userscript is available. Do you want to update?')) ) {
GM_setValue('updated', Math.round(new Date().getTime() / 1000));
document.location.href = 'http://userscripts.org/scripts/source/'+scr_id+'.user.js';
} else if (version[1] != scr_version) {
if(confirm('Do you want to turn of auto updating for this script?')) {
GM_setValue('updated', 'off');
GM_registerMenuCommand("Auto Update "+scr_name[1], function(){GM_setValue('updated', Math.round(new Date().getTime() / 1000));});
} else {
GM_setValue('updated', Math.round(new Date().getTime() / 1000));
}
} else {
GM_setValue('updated', Math.round(new Date().getTime() / 1000));
}
}
});
}
}
})();