revertBook

By Justin Rosenthal Last update Jun 19, 2007 — Installed 475 times. Daily Installs: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 2, 2, 2, 0, 1, 0, 0, 0, 0, 1, 0, 3, 0, 0, 1, 0, 2, 0, 1
// ==UserScript==
// @name           revertBook
// @namespace      http://www.facebook.com
// @description    Removes all user-installed applications on facebook profiles
// @include        http://*facebook.com*profile.php*
// ==/UserScript==

var appDivs = document.evaluate( '//div[contains(@id, "box_app")]', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i=0; i < appDivs.snapshotLength; i++) appDivs.snapshotItem(i).parentNode.removeChild(appDivs.snapshotItem(i));