// Modified Nick Briz's "leave facebook" scripts to be a little better behaved and crash the browser less. // Original link here: http://nickbriz.com/facebook/index.html // // DIRECTIONS --- // // 1 - Navigate to http://facebook.com/yourUserName/allactivity // 2 - Open dev console // 3 - Paste in contents of... http://code.jquery.com/jquery-2.1.1.min.js // 4 - Paste the contents of this file ...wait for it to run // 5 - Scroll to the bottom of the page, load some more stuff // 6 - Keep executing 'leaveFacebook();' var waitSeconds = 1; // adjust for slow internet connections var menuChoices = null; var currTimeout = null; // Loads menus we're interested in clicking at a later time... function loadMenus() { console.log("Loading menus to click!"); var editMenus = $('.uiPopover > a'); for (var i = 0; i < editMenus.length; i++) { editMenus[i].click(); }; var menuStringsToMatch = [ //'Report', 'Delete', 'Unlike' ]; menuChoices = []; $('.uiLayer span').each(function() { var ele = $(this); var menuContent = ele.html(); for(var i=0;i 0) clickNextMenu(); }, waitSeconds*1000); } function leaveFacebook() { loadMenus(); clickNextMenu(); } // You can keep executing this as you scroll down the timeline // - OR - reload the page, re-paste, etc. leaveFacebook();