GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Add random links / insults / text / etc to your posts / blogs / etc (https://gfy.com/showthread.php?t=675136)

SmokeyTheBear 11-08-2006 01:02 PM

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

SmokeyTheBear 11-08-2006 01:05 PM

once you have setup one you can setup a bunch of them the same way only the first registry key should be named differently..

This way you can have several rotations setup

like a "random name" button "random email" button , a "random forum link" , random html link etc

SmokeyTheBear 11-08-2006 02:18 PM

oh well im sure someone will find it usefull at some point..

who 11-08-2006 02:36 PM

That's the best thing I've ever read on here. Thank you! Damn.. I feel like I should buy you beer. :thumbsup

GetBigCash 11-08-2006 02:39 PM

Thanks for this!


All times are GMT -7. The time now is 01:25 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123