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,436Moderator, 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* // @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="" />' ).replace('Conversationalist', '<img src="" title="Conversationalist"/>' ).replace('Cool', '<img title="Cool" src="" />' ).replace('Internet Detective', '<img title="Internet Detective" src="" />' ).replace('Game Dev', '<img title="Game Dev" src="" />' ).replace('Flagger', '<img title="Flagger" src="" />' ).replace('Friendly', '<img title="Friendly" src="" />' ).replace('Funny', '<img title="Funny" src="" />' ).replace('Idle Game Master', '<img title="Idle Game Master" src="" />' ).replace(/(Administrator|,|(?:Sub-)*Moderator|Member|Server Operator)/gi, '' ).replace('Wiener', '<img title="Wiener" src="" />'); }; for (var i = 0, l = elsA.length; i < l; i++) { var el = elsA[i]; el.innerHTML = '<img title="Admin" src="" />' }; for (var i = 0, l = elsM.length; i < l; i++) { var el = elsM[i]; el.innerHTML = '<img title="Moderator" src="" />' }; 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="" />' }; //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
Post edited by Shylight on


Sign In or Register to comment.