d2jsp
Log InRegister
d2jsp Forums > Other Games > RuneScape > Need Help On Text Issue
Prev12346Next
Closed New Topic New Poll
Member
Posts: 58,906
Joined: May 7 2007
Gold: 6.00
May 13 2012 06:25pm
You need to download Tampermonkey/greasemonkey for either firefox or chrome.

Then add this script to it
:

Code
// ==UserScript==
// @name D2JSP bbcode button
// @namespace MEH
// @description adds custom bbcode buttons
// @author ikusus
// @license wtfpl
// @include http://forums.d2jsp.org/*.php*
// @version  1
// ==/UserScript==

function __insf() {
//this is where you define buttons. Can be also used for links to often used places etc...
var buttons = [
{
"name": "color",
"html": "<img src='http://forums.d2jsp.org/html/emoticons/ph34r.gif' />",
"script": function() {
doI("[b][color=ForestGreen]", "[/b][/color]");
return false;
}
}

];
// don't edit below this line

var style = document.createElement("style");
style.type = "text/css";
style.innerHTML = "div.bbcodebox{ color: #fff; width: 30px; position: fixed; top: 0px; left: 0px; opacity: 0.1; z-index: 9999999; }\n";
style.innerHTML += "div.bbcodebox:hover{ opacity: 1; }\n";
style.innerHTML += "div.bbcodebox a{ color: #fff;cursor: pointer; display: block;}\n";
document.getElementsByTagName("head")[0].appendChild(style);

var js = document.createElement('script');
js.src = 'http://forums.d2jsp.org/jscripts/q.js';
js.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(js);

var js2 = document.createElement('script');
js2.src = 'http://pastebin.com/raw.php?i=kzDtpR0d';
js2.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(js2);

var box = document.createElement("div");
box.setAttribute("class", "bbcodebox" );

for( i in buttons ) {
var a = document.createElement("a");

a.addEventListener( "click", buttons[i]["script"], false );
a.innerHTML = buttons[i]["html"];
a.title = buttons[i]["name"];
if (buttons[i]["href"])
a.href = buttons[i]["href"];
box.appendChild( a );
}

document.body.appendChild( box );

};

var __insb = document.createElement("script");
__insb.textContent = __insf + "\n\n __insf();";
__insb.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(__insb);


Code
("[b][color=ForestGreen]", "[/b][/color]");

Edit this part in the script to w/e you want your posts to look like.

I had fun with this ones.


You can use this link to help customize your text a little more:
http://forums.d2jsp.org/topic.php?t=36872318&f=34


Once its impleminted into your browser, there will be a transparent :ph34r: in the top right corner of you screen. When you hover over it, it will turn perent.
Once you have it set into the script all you have to do is click the :ph34r: and it will bascially paste w/e it is you set into the chat box *here*.



then you can just start typing with out presetting all of it one by one.

This post was edited by Shokaloop on May 13 2012 06:27pm
Member
Posts: 864
Joined: Oct 13 2008
Gold: 0.00
May 13 2012 06:28pm
link greasemonkey script or whatever please
Member
Posts: 58,906
Joined: May 7 2007
Gold: 6.00
May 13 2012 06:29pm
Quote (nekodragon @ May 13 2012 07:28pm)
link greasemonkey script or whatever please


That is the script.

https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo

That's the tampermonkey addon you need for chrome.
Member
Posts: 3,941
Joined: Oct 13 2009
Gold: 66.00
May 13 2012 06:32pm
will this work for opera?
Member
Posts: 864
Joined: Oct 13 2008
Gold: 0.00
May 13 2012 06:32pm
Quote (Shokaloop @ May 14 2012 12:29am)
That is the script.

https://chrome.google.com/webstore/detail/dhdgffkkebhmkfjojejmpbldmpobfkfo

That's the tampermonkey addon you need for chrome.


how do i add ur script to it
Member
Posts: 58,906
Joined: May 7 2007
Gold: 6.00
May 13 2012 06:33pm
This post is a violation of the site rules and appropriate action was taken.

Quote (Preserved @ May 13 2012 07:32pm)
will this work for opera?

no.

e/ well unless opera has a tampermonkey addon. Dunno if it would then tbh.
Quote (nekodragon @ May 13 2012 07:32pm)
how do i add ur script to it


It's people like you that make me hate making these kinds of things.

Read the instructions you lazy fuck.


This post was edited by Shokaloop on May 13 2012 06:34pm
Member
Posts: 864
Joined: Oct 13 2008
Gold: 0.00
May 13 2012 06:36pm
Quote (Shokaloop @ May 14 2012 12:33am)
no.

e/ well unless opera has a tampermonkey addon. Dunno if it would then tbh.


It's people like you that make me hate making these kinds of things.

Read the instructions you lazy fuck.


i see no instructions...
Member
Posts: 58,906
Joined: May 7 2007
Gold: 6.00
May 13 2012 06:37pm
Quote (nekodragon @ May 13 2012 07:36pm)
i see no instructions...


Then i guess you dont get to use the script...

Mess with the addon ffs... its not hard. Dont have to know shit about scripting. Very self explanatory.
Member
Posts: 58,906
Joined: May 7 2007
Gold: 6.00
May 13 2012 06:40pm
shit.

This post was edited by Shokaloop on May 13 2012 06:40pm
Member
Posts: 864
Joined: Oct 13 2008
Gold: 0.00
May 13 2012 06:41pm
Quote (Shokaloop @ May 14 2012 12:37am)
Then i guess you dont get to use the script...

Mess with the addon ffs... its not hard. Dont have to know shit about scripting. Very self explanatory.


ok i added it, now how do i make it work 24\7
Go Back To RuneScape Topic List
Prev12346Next
Closed New Topic New Poll