It looks like you're new here. If you want to get involved, click one of these buttons!
// ==UserScript==
// @name DashRoles
// @namespace dashnet
// @include http://forum.dashnet.org/*
// @version 1.1
// @grant none
// ==/UserScript==
var els = document.getElementsByClassName('RoleTitle');
var elsA = document.getElementsByClassName('Rank MItem Rank-Admin');
var elsM = document.getElementsByClassName('Rank MItem Rank-Mod');
var elsS = document.getElementsByClassName('Role_Sub-Moderator');
for (var i = 0, l = els.length; i < l; i++) {
var el = els[i];
el.innerHTML = el.innerHTML.replace('Helpful', '<img title="Helpful" src="http://i.imgur.com/6pds42D.png" />'
).replace('Conversationalist', '<img src="http://i.imgur.com/crC9AUg.png" title="Conversationalist"/>'
).replace('Cool', '<img title="Cool" src="http://i.imgur.com/bjjx7my.png" />'
).replace('Internet Detective', '<img title="Internet Detective" src="http://i.imgur.com/OH5xEdj.png" />'
).replace('Game Dev', '<img title="Game Dev" src="http://i.imgur.com/NTzccVl.png" />'
).replace('Flagger', '<img title="Flagger" src="http://i.imgur.com/oZNS7aR.png" />'
).replace('Friendly', '<img title="Friendly" src="http://i.imgur.com/o6fscZG.png" />'
).replace('Funny', '<img title="Funny" src="http://i.imgur.com/yHxQNTg.png" />'
).replace('Idle Game Master', '<img title="Idle Game Master" src="http://i.imgur.com/POTLHEU.png" />'
).replace(/(Administrator|,|(?:Sub-)*Moderator|Member|Server Operator)/gi, ''
).replace('Wiener', '<img title="Wiener" src="http://i.imgur.com/SwJCEgi.png" />');
};
for (var i = 0, l = elsA.length; i < l; i++) {
var el = elsA[i];
el.innerHTML = '<img title="Admin" src="http://i.imgur.com/LACV23z.png" />'
};
for (var i = 0, l = elsM.length; i < l; i++) {
var el = elsM[i];
el.innerHTML = '<img title="Moderator" src="http://i.imgur.com/ES8cmb5.png" />'
};
for (var i = 0, l = elsS.length; i < l; i++) {
var el = elsS[i].getElementsByClassName('Rank MItem')[0];
el.innerHTML = '<img title="Sub-Moderator" src="http://i.imgur.com/ZpioRcV.png" />'
};
//sheet.insertRule('.MItem img { vertical-align: top; margin: 0 -4px -2px; }', sheet.cssRules.length);
var css = document.createElement("style");
css.type = "text/css";
css.innerHTML = ".MItem img { vertical-align: top; margin: 0 0px -2px -4px; padding: 0; opacity: 0.5; cursor: pointer } .MItem img:hover{opacity:1} .Rank.Rank-Admin, .Rank.Rank-Mod {background: none;}";
document.body.appendChild(css);
Comments
(But you got me to install Greasemonkey and so now it's there if I ever need it! :P)
I know that Greasemonkey is super useful and stuff, and that it could be handy for my CC script as well, but I have no idea how to use it.
I guess I'll look into that a bit later, if I don't forget.
I MADE SOMETHING WORK ON FIRST TRY
Is there a way that I could make this work with my CC pack?
// ==UserScript== // @name Name // @namespace dashnet // @include Page Address // @version 1.0 // @grant none // ==/UserScript==
"HOLY TITS IT'S ARMS ARE MOVING" ~Me | "Why are you farming disagrees?" ~DMF | "My art is math." ~C_N
"you dashnet fags are the pac-man" ~CG | "you dont choose to be gay, you just have to be lucky." ~TFU
"Why the fuck I voted this?!" ~Idler | "The real question is, 'How many dragons do you want to screw?'." ~Annie
"You'd be like a Kardashian (or whoever's relevant nowadays)" ~Adumb | "piece of shit poll" ~EC
"It's a nice feeling to be put in a sig." ~Tellurium | "sparky why isn't 'holy fuck sparky' in your sig" ~DMF
"in my 10(-3) months living in dashnet i have never been sigged for more than like 30 minutes" ~lennonluiz0907
"please get sigged, please, please!" ~MCVIII | "Wow, Sparky's sig is just about others talking about sigs." ~DS1.8K
"LEGENDS ARE MADE BY SPARKY'S SIGNATURE" ~C_N | "I actually kind of want to be in Sparky's sig." ~CWS
"I feel like I'm the only guy here with a full sig of quotes that don't have meta-humor involved." ~CWS
It is pretty neat though.
EDIT: Pun not intended, but I will say it was.
And Sub-Moderator is replaced with this symbol:
I'm having issues doing this. How can I do this? Help me! ;n;
"HOLY TITS IT'S ARMS ARE MOVING" ~Me | "Why are you farming disagrees?" ~DMF | "My art is math." ~C_N
"you dashnet fags are the pac-man" ~CG | "you dont choose to be gay, you just have to be lucky." ~TFU
"Why the fuck I voted this?!" ~Idler | "The real question is, 'How many dragons do you want to screw?'." ~Annie
"You'd be like a Kardashian (or whoever's relevant nowadays)" ~Adumb | "piece of shit poll" ~EC
There were only four stars: the helpful one (green), moderator (yellow), admin (red), and banned (red-grey).
"It's a nice feeling to be put in a sig." ~Tellurium | "sparky why isn't 'holy fuck sparky' in your sig" ~DMF
"in my 10(-3) months living in dashnet i have never been sigged for more than like 30 minutes" ~lennonluiz0907
"please get sigged, please, please!" ~MCVIII | "Wow, Sparky's sig is just about others talking about sigs." ~DS1.8K
"LEGENDS ARE MADE BY SPARKY'S SIGNATURE" ~C_N | "I actually kind of want to be in Sparky's sig." ~CWS
"I feel like I'm the only guy here with a full sig of quotes that don't have meta-humor involved." ~CWS
Here's the code:
// ==UserScript== // @name DashRoles // @namespace dashnet // @include http://forum.dashnet.org/* // @version 1.1 // @grant none // ==/UserScript== var els = document.getElementsByClassName('RoleTitle'); var elsA = document.getElementsByClassName('Rank MItem Rank-Admin'); var elsM = document.getElementsByClassName('Rank MItem Rank-Mod'); for (var i = 0, l = els.length; i < l; i++) { var el = els[i]; el.innerHTML = el.innerHTML.replace('Helpful', '<img title="Helpful" src="http://i.imgur.com/6pds42D.png"; />' ).replace('Conversationalist', '<img src="http://i.imgur.com/crC9AUg.png"; title="Conversationalist"/>' ).replace('Cool', '<img title="Cool" src="http://i.imgur.com/bjjx7my.png"; />' ).replace('Internet Detective', '<img title="Internet Detective" src="http://i.imgur.com/OH5xEdj.png"; />' ).replace('Game Dev', '<img title="Game Dev" src="http://i.imgur.com/NTzccVl.png"; />' ).replace('Flagger', '<img title="Flagger" src="http://i.imgur.com/oZNS7aR.png"; />' ).replace('Friendly', '<img title="Friendly" src="http://i.imgur.com/o6fscZG.png"; />' ).replace('Funny', '<img title="Funny" src="http://i.imgur.com/yHxQNTg.png"; />' ).replace('Idle Game Master', '<img title="Idle Game Master" src="http://i.imgur.com/POTLHEU.png"; />' ).replace(/(Administrator|,|Moderator|Server Operator)/gi, '' ).replace('Wiener', '<img title="Wiener" src="http://i.imgur.com/SwJCEgi.png"; />'); ).replace('Member', '<img title="Member" src="http://i.imgur.com/6lxeRyM.png"; />'); }; for (var i = 0, l = elsA.length; i < l; i++) { var el = elsA[i]; el.innerHTML = '<img title="Admin" src="http://i.imgur.com/LACV23z.png"; />' }; for (var i = 0, l = elsM.length; i < l; i++) { var el = elsM[i]; el.innerHTML = '<img title="Moderator" src="http://i.imgur.com/ES8cmb5.png"; />' }; //sheet.insertRule('.MItem img { vertical-align: top; margin: 0 -4px -2px; }', sheet.cssRules.length); var css = document.createElement("style"); css.type = "text/css"; css.innerHTML = ".MItem img { vertical-align: top; margin: 0 0px -2px -4px; padding: 0; opacity: 0.5; cursor: pointer } .MItem img:hover{opacity:1} .Rank.Rank-Admin, .Rank.Rank-Mod {background: none;}"; document.body.appendChild(css);
Well, now you do. ;3
"HOLY TITS IT'S ARMS ARE MOVING" ~Me | "Why are you farming disagrees?" ~DMF | "My art is math." ~C_N
"you dashnet fags are the pac-man" ~CG | "you dont choose to be gay, you just have to be lucky." ~TFU
"Why the fuck I voted this?!" ~Idler | "The real question is, 'How many dragons do you want to screw?'." ~Annie
"You'd be like a Kardashian (or whoever's relevant nowadays)" ~Adumb | "piece of shit poll" ~EC
"Please respect the Rules. You can look them up at any time:
Rules for Off-Topic Section | Rules for Playground | Rules for Cookie Clicker Section"~me
"HOLY TITS IT'S ARMS ARE MOVING" ~Me | "Why are you farming disagrees?" ~DMF | "My art is math." ~C_N
"you dashnet fags are the pac-man" ~CG | "you dont choose to be gay, you just have to be lucky." ~TFU
"Why the fuck I voted this?!" ~Idler | "The real question is, 'How many dragons do you want to screw?'." ~Annie
"You'd be like a Kardashian (or whoever's relevant nowadays)" ~Adumb | "piece of shit poll" ~EC