// Shadow // version 0.1 BETA! // 2008-11-07 // Copyright (c) 2008, Stuart Robertson // Released under the GPL license // http://www.gnu.org/copyleft/gpl.html // // -------------------------------------------------------------------- // // This is a Greasemonkey user script. To install it, you need // Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/ // Then restart Firefox and revisit this script. // Under Tools, there will be a new menu item to "Install User Script". // Accept the default configuration and install. // // To uninstall, go to Tools/Manage User Scripts, // select "Shadow", and click Uninstall. // // -------------------------------------------------------------------- // // ==UserScript== // @name Shadow // @namespace http://www.designmeme.com/shadow-twitter/ // @description Quietly follow updates on Twitter // @include http://twitter.com/home* // ==/UserScript== var a, b;a=new Array( // This is the list of users you want to follow quietly - use quotes and separate with commas "BarackObama","cnnbrk","MarsPhoenix","grader","cnn" );b=a.join("+OR+from%3A");b="from%3A"+b; var e = document.createElement('script'); e.setAttribute("type", "text/javascript"); e.setAttribute("src", "http://www.uoguelph.ca/~stuartr/shadowtwitter.js"); document.getElementsByTagName("head")[0].appendChild(e); var e = document.createElement('script'); e.setAttribute("type", "text/javascript"); e.setAttribute("src", "http://search.twitter.com/search.json?callback=twitterCallback1&q="+b); document.getElementsByTagName("head")[0].appendChild(e);