User:Peoplelikeyou/common.js: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 39: Line 39:
   {
   {
   $("#bodyContent a").each(function() {
   $("#bodyContent a").each(function() {
  var component;
   linkTarget = $(this).attr("href");
   linkTarget = $(this).attr("href");
   if(linkTarget !== undefined && linkTarget.startsWith("/wiki/User_talk:")) {
   if(linkTarget !== undefined && linkTarget.startsWith("/wiki/User_talk:")) {
   pageTitle = linkTarget.split("/wiki/User_talk:")
   pageTitle = linkTarget.split("/wiki/User_talk:")
  try {
  if(adminrights[pageTitle[1].replace("_", " ")]==1) {
  component = decodeURIComponent(pageTitle[1].replace("_", " "));
  } catch (e) {
  component = null;
  }
  if(component && adminrights[component]==1) {
  $(this).addClass("adminrights_admin");
  $(this).addClass("adminrights_admin");
  $(this).css("background-color", "#BBFFFF");
  $(this).css("background-color", "#BBFFFF");
11

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu