Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please read the forum rules before posting.



Check if you are posting in the correct category.



The Off Topic section is not meant for discussing Cookie Clicker.

A handy userscript for the forums

ShylightShylight Posts: 6,470Moderator, Friendly, Helpful, Flagger Mod
edited October 2015 in Off Topic



Yup. It's a script that makes roles better until the badges get reimplemented (if ever). To make it work install Grease/Tamper Monkey, make a new script and paste the following code in it.

// ==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);

There's probably a better way, but I don't really care. It works :P
SparklebuttimagePurplesmart
Post edited by Shylight on
«1

Comments

«1
Sign In or Register to comment.