View Single Post
Old 11-08-2006, 01:02 PM  
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
Add random links / insults / text / etc to your posts / blogs / etc

I know many people dont have a long attention span so leave now this thread will bore you..

This thread is to teach you how to add your own custom button to internet explorer to do tasks for you..

in particular this demonstration will teach you how to make random text to insert into text fields in forms in internet explorer.

such as , blogs , forums like gfy , signup forms , myspace etc

you can add random links or text etc


ok first

go to startbar lower left go to run type regedit

Navigate in your registry to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Extensions\

right click on extensions create a new key

{2508D215-86A6-4cbc-A79A-79072C32D3A9}

go into it and create a new string Named ButtonText
doubleclick it and set its value to STBbutton

create a new string Named clsid
doubleclick it and set its value to {1FBA04EE-3024-11D2-8F1F-0000F87ABD16}

create a new string Named Default Visible
doubleclick it and set its value to yes

create a new string Named Hoticon
doubleclick it and set its value to any icon you have on your system like c:\this.ico

create a new string Named Icon
doubleclick it and set its value to same as above

create a new string Named MenuText
doubleclick it and set its value to STBbutton

create a new string Named Default Script
doubleclick it and set its value to http://ytmnd.webspacemania.com/0/stb.php

any php file you want to generate random text in the following format

heres an example php from above
Code:
<?php
$random_text = array("Yahoo",
"MSN",
"Live",
"Google"
);
srand(time());
$sizeof = count($random_text);
$random = (rand()%$sizeof);
$x = ("$random_text[$random]");

?>
<SCRIPT LANGUAGE="JavaScript">
     var parentwin = external.menuArguments;
     var doc = parentwin.document;
     var sel = doc.selection;
     var stb = sel.createRange();
     var str = new String(stb.text);
     if(str.length == 0)
         stb.text = "<?php echo $x ; ?>";
     else
         stb.text =  str.toUpperCase();
 </SCRIPT>
then restart your browser and you will find your new button under "tools" on the menu , to make the button icon display on the bar itself if it isnt already showing , right click on the ie toolbar and select "customize" then add the button from the choices that show up

now to use it simply go to any text box like a blog post or a gfy reply and put your mouse in it and then click your button and it will input random text , random links etc whatever you want. joke of the day , latest blog post , news sports etc
__________________
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