View Single Post
Old 02-13-2009, 11:57 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
:stoned Internet Explorer gfy postwhore HACK

heres a cool little tweak for i.e. users.

When you right click on a page in i.e. a number of option appear on a menu like "save background, copy,paste,etc"

This tweak will let you set a custom menu option that when clicked will put a random set of text into your clipboard as if you copied it, so now when you PASTE it will be a random set of text pulled from a javascript file

This is very usefull for putting random comments or html snippets on blogs/youtube/forums/gfy etc

heres how you do it, its very simple.

first save the following as stb.js put in your c: drive or wherever is easiest for you.

Code:
<SCRIPT LANGUAGE="JavaScript" defer>

var stb=new Array() 


stb[0] = "Hello world";
stb[1] = "this rocks";
stb[2] = "Repent! The end is coming";
stb[3] = "i love cheese";
stb[4] = "the sky is blue";
stb[5] = "holy crap";
stb[6] = "did you see my sig";
stb[7] = "Wishes are like farts ";
stb[8] = "i \"love\" examples";
stb[9] = "wierd man";


var Q = stb.length;
var whichstb=Math.round(Math.random()*(Q-1));
sad = stb[whichstb];

external.menuArguments.clipboardData.setData("Text",sad);

</SCRIPT>
then save the following as stb.reg and put anywhere , you only need to run it once.

Code:
REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\Random Text]
@="file://C:\\stb.js"
once you have saved it , click it to open/add it to registry, then just restart i.e. and right click and you will see a new item on the menu called "Random Text"


if enough people enjoy this tweak i will post some other examples of cool things you can do with this, like grabbing html or text from the page you are on and sending it to the js file, like lets say you wanted to always grab the title of the page you are on to include in the output text
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote