User:Yair rand/orangelinks.js

// The idea for this script was taken from User:Hippietrail/ajaxtranslinks.js. wgNamespaceNumber || addOnloadHook(function{ var r = [], v = [], f = $("#bodyContent a[href*=\"#\"]:not(.new,[href^=\"#\"],[href*=\":\"],#languageLinks a)")  f.each(function{ var b = decodeURI(this.href.split("/wiki/")[1]).replace(/\./g, '%').replace(/_/g,' ').split("#"); v.push(b); $.inArray(b[0],r) == -1 && r.push(b[0]) }) r.length && JsMwApi({action:'query',prop:'revisions',rvprop:'content',titles:r.splice(0,$.inArray("sysop",wgUserGroups) == -1?50:500).join("|")},function(p){ var j = p.query.pages; f.each(function(g){     for(var i in j){        if(j[i].title == v[g][0] && j[i].revisions[0]['*'].indexOf("=="+v[g][1]+"==") == -1){          this.className = 'partlynew'          }        }      }) }) })