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
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
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