Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Displaying Monk Levels

by chacham (Prior)
on Oct 28, 2014 at 20:26 UTC ( [id://1105368]=monkdiscuss: print w/replies, xml ) Need Help??

After reading Author's level title hidden by default, and adding ".attribution-title { display: inline; }" to On-Site CSS Markup in Display Settings i realized i had no idea what the levels of those titles were. So, with a lot of searching and some guessing, i put together a Greasemonkey script to show (# - title), for example, instead of "(Pope)", it'll display "(28 - Pope)".

// ==UserScript== // @name Monk levels // @namespace http://www.example.com/chacham/ // @description Replace attribution title with corresponding level // @include http://perlmonks.org/* // @grant none // ==/UserScript== var level = { "Initiate" : "1", "Novice" : "2", "Acolyte" : "3", "Sexton" : "4", "Beadle" : "5", "Scribe" : "6", "Monk" : "7", "Pilgrim" : "8", "Friar" : "9", "Hermit" : "10", "Chaplain" : "11", "Deacon" : "12", "Curate" : "13", "Priest" : "14", "Vicar" : "15", "Parson" : "16", "Prior" : "17", "Monsignor" : "18", "Abbot" : "19", "Canon" : "20", "Chancellor" : "21", "Bishop" : "22", "Archbishop" : "23", "Cardinal" : "24", "Sage" : "25", "Saint" : "26", "Apostle" : "27", "Pope" : "28" }; var attribution = document.getElementsByClassName('attribution-title') +; for (var i = 0; i < attribution.length; i++) for (var title in level) attribution[i].innerHTML = attribution[i].innerHTML.replace(title, l +evel[title] + " - " + title);

Update: Changed innerHTML to textContent

Added on OpenUsersJS at PerlMonks Monk levels

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://1105368]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2025-06-13 11:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.