MySpace Remove Applications

By JoeSimmons Last update Jun 13, 2009 — Installed 515 times. Daily Installs: 2, 0, 1, 0, 1, 0, 2, 1, 2, 0, 1, 1, 1, 2, 1, 0, 1, 2, 0, 0, 2, 0, 1, 0, 1, 2, 2, 2, 0, 2, 3, 1

There are 3 previous versions of this script.

// ==UserScript==
// @name           MySpace Remove Applications
// @namespace      http://userscripts.org/users/23652
// @description    Deletes applications like "Mobsters" and "Heroes" from MySpace profiles
// @include        http://*.myspace.com/*
// @include        http://myspace.com/*
// @copyright      JoeSimmons
// @version        1.0.1
// @license        Creative Commons Attribution-Noncommercial 3.0 United States License
// ==/UserScript==

if(top.location!=location) return;

window.addEventListener('load', function(){
var apps = window.document.evaluate("//div[contains(@class, 'mdpapplicationModule')] | //table[starts-with(@id,'appchrome_')]",window.document,null,6,null);
for(var i=apps.snapshotLength-1; (item=apps.snapshotItem(i)); i--) item.parentNode.removeChild(item);
}, false);