chacham / PerlMonks Monk levels

// ==UserScript==
// @name PerlMonks Monk levels
// @namespace http://www.example.com/chacham/
// @description Replace PerlMonks attribution title with corresponding level
// @include http://perlmonks.org/*
// @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, level[title] + " - " + title);