JRI / Church Micro Stats

// ==UserScript==
// @name        Church Micro Stats
// @namespace   inge.org.uk/userscripts
// @description Adds your church micro stats badge onto your profile and the cache listing page for Church Micro caches.
// @oujs:author JRI
// @license     MIT License; http://www.opensource.org/licenses/mit-license.php
// @copyright   2014-15, James Inge (http://geo.inge.org.uk/)
// @attribution Church Micro stats provided by BaSHful (http://www.15ddv.me.uk/geo/cm/cm.html)
// @attribution Image by Lorna Mulligan
// @icon        https://raw.githubusercontent.com/JRInge/userscripts/master/ChurchMicroStats/churchIcon48.png
// @icon64      https://raw.githubusercontent.com/JRInge/userscripts/master/ChurchMicroStats/churchIcon64.png
// @include     http://www.geocaching.com/my/
// @include     https://www.geocaching.com/my/
// @include     http://www.geocaching.com/my/default.aspx*
// @include     https://www.geocaching.com/my/default.aspx*
// @include     http://www.geocaching.com/my/myfriends.aspx*
// @include     https://www.geocaching.com/my/myfriends.aspx*
// @include     http://www.geocaching.com/geocache/*
// @include     https://www.geocaching.com/geocache/*
// @include     http://www.geocaching.com/profile/*
// @include     https://www.geocaching.com/profile/*
// @include     https://www.geocaching.com/geocache/*
// @include     http://www.geocaching.com/seek/cache_details.aspx*
// @include     https://www.geocaching.com/seek/cache_details.aspx*
// @grant       GM_xmlhttpRequest
// @version     0.0.9
// @updateURL   http://geo.inge.org.uk/userscripts/Church_Micro_Stats.meta.js
// @downloadURL https://openuserjs.org/install/JRI/Church_Micro_Stats.user.js
// ==/UserScript==

/* global GM_xmlhttpRequest */

(function () {
  "use strict";
  var cacheName = document.getElementById("ctl00_ContentBody_CacheName"),
    churchImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMMAAAB7CAYAAADJ5jSyAAAABmJLR0QA%2FwD%2FAP%2BgvaeTAAAAB3RJTUUH3gYNFTEev3WhyAAAIABJREFUeNrsvXdgY%2Bd1p%2F2gkAQIArj3gr2hkhxyZtg5RdJUDiWNZFmjYhVLthVp5bhsiu0vazvZdeomsZ1kky9OXOU4iRJbZWzJkmVpukYaT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WHRDb21tZW50AEJ5IExvcm5hIE11bGxpZ2Fu8ANzlwAAAABJRU5ErkJggg%3D%3D",
    cmsCSS = document.createElement("style"),
    css = 'div.cms-container { border: 1px solid #30f; border-radius: 3px; margin-top: 1.5em; padding: 0; text-align: center; } .cms-container a { display: inline-block; padding-top: 1pt; text-decoration: none; text-align: left; } a.cms-badge { width: 195px; height: 116px; color: #30f; background: url(' + churchImage + '); } a.cms-msg { color: #555; background-image: none; border: 1px solid #999; border-radius: 3px; padding: 3pt; } .WidgetBody div.cms-container { border: none; margin-top: 0.5em; } .WidgetBody .cms-container a { border: 1px solid #000; padding-left: 3px; } .WidgetBody .cms-container img { margin: 0 2px } #ctl00_ContentBody_ProfilePanel1_pnlProfile div.cms-container { border: none; text-align: inherit;} .cms-award {font-weight: bold; } .cms-finds { font-style: italic; } .cms-level { font-family: Algerian, "Calisto MT", "Bookman Old Style", Bookman, "Goudy Old Style", Garamond, "Hoefler Text", "Bitstream Charter", Georgia, serif; font-size: 54pt; line-height: 0.8; }',
    currentPage,
    handler = document.createElement("script"),
    jsonp = document.createElement("script"),
    profileName = document.getElementById("ctl00_ContentBody_ProfilePanel1_lblMemberName"),
    statsUri = "http://www.15ddv.me.uk/geo/cm/awards/cm_data.php?name=",
    userField = document.getElementsByClassName("li-user-info"),
    userName = "",
    userNames = [];

  function displayStats(stats, page) {
    function getAward(num) {
      var levels = [ "Novice", "Reader", "Deacon", "Curate", "Vicar", "Archdeacon", "Bishop", "Archbishop", "Primate", "Saint" ];
      if (num >= 0 && num < levels.length) {
        return levels[num];
      }
      return "Infidel";
    }
    function getHtml(uname, level, award, finds) {
      switch (level) {
      case -1:
        return "<a class='cms-msg' href='http://www.15ddv.me.uk/geo/cm/cm.html' title='Church Micro statistics by BaSHful'><strong>Church Micros:</strong> " + uname + " hasn't got any Church Micro finds in the database yet.</a>";
      case 0:
        return "<a class='cms-msg' href='http://www.15ddv.me.uk/geo/cm/cm.html' title='Church Micro statistics by BaSHful'><strong>Church Micros:</strong> " + uname + " hasn't qualified for a Church Micros award yet (only " + finds + " finds in the database).</a>";
      default:
        return "<a class='cms-badge' href='http://www.15ddv.me.uk/geo/cm/cm.html' title='Church Micro statistics by BaSHful: " + uname + " is a Level " + level + " " + award + " after finding " + finds + " Church Micro caches'><span class='cms-user'>" + uname +
          "</span><br /><span class='cms-award'>" + award +
          "</span><br /><span class='cms-finds'>Finds: " + finds +
          "</span><br /><span class='cms-level'>" + level +
          "</span></a>";
      }
    }
    function getLevel(num) {
      var n = parseInt(num, 10);
      if (isNaN(n) || n < 1) { return -1; }
      if (n < 10) { return 0; }
      if (n < 25) { return 1; }
      if (n < 50) { return 2; }
      if (n < 100) { return 3; }
      if (n < 250) { return 4; }
      if (n < 500) { return 5; }
      if (n < 1000) { return 6; }
      if (n < 2500) { return 7; }
      if (n < 5000) { return 8; }
      return 9;
    }
    function insertFriends(statslist) {
      var i, j, list, headers;
      headers = document.getElementsByTagName("H4");
      for (i = 0; i < headers.length; i++) {
        for (j = 0; j < statslist.length; j++) {
          if (headers[i].parentElement.className === "FriendText" && (headers[i].textContent.indexOf(statslist[j].name) !== -1)) {
            list = headers[i].parentElement.getElementsByClassName("FriendList");
            if (list.length > 0) {
              list[0].innerHTML += "<dt><acronym title='Church Micro cache'>CM</acronym> finds:</dt><dd>" + statslist[j].finds + "</dd>";
            }
          }
        }
      }
    }
    var award,
      cmsWidget = document.createElement("div"),
      finds,
      html = "",
      i,
      images,
      level,
      loop,
      name,
      target,
      target2;

    for (i = 0; i < stats.length; i++) {
      name = (stats[i].name + "")
        .replace(/;/g, ",")
        .replace(/'/g, "&apos;")
        .replace(/"/g, "&quot;");
      finds = stats[i].finds;
      level = getLevel(finds);
      award = getAward(level);
      if (i === 0 || stats[i].name !== stats[0].name) {
        html += getHtml(name, level, award, finds);
      }
    }

    switch (page) {
    case "my":
      target = document.getElementById("ctl00_ContentBody_lnkProfile");
      break;
    case "cache":
      target = document.getElementById("map_preview_canvas");
      break;
    case "profile":
      target2 = document.getElementsByClassName("player-stats");
      if (target2.length > 0) {
        target2[0].innerHTML += '<div id="cms_summary_stats" class="stat"><img width="25" height="16" src="' + churchImage + '" /> ' + finds + ' <acronym title="Church Micro cache">CM</acronym> finds</div>';
      }
      // Abort if award badge already on profile page
      images = document.getElementsByTagName("IMG");
      for (loop = 0; loop < images.length; loop++) {
        if (/15ddv.me.uk\/geo\/cm\/awards\/cm_award.php/.test(images[loop].src)) {
          console.info("Church micro badge not inserted: already on profile of " + userName);
          return;
        }
      }
      target = document.getElementById("ctl00_ContentBody_ProfilePanel1_lblProfile");
      if (target) {
        target = target.parentNode;
      }
      break;
    case "friends":
      insertFriends(stats);
      return;
    }

    if (!target && !target2) {
      console.warn("Church Micro Stats: Aborted - couldn't find where to insert widget. Might not be logged in.");
      return;
    }

    if (html) {
      cmsWidget.className = "cms-container";
      cmsWidget.innerHTML = html;
      target.parentNode.insertBefore(cmsWidget, target.nextSibling);
    } else {
      console.warn("Church Micro Stats: didn't generate any award badge.");
    }
  }

  function getFriendNames() {
    var i, names = [], headers = document.getElementsByTagName("H4");
    for (i = 0; i < headers.length; i++) {
      if (headers[i].parentElement.className === "FriendText") {
        names.push(headers[i].textContent.trim());
      }
    }
    return names;
  }
  function getHiderName() {
    var i,
      links = document.getElementsByTagName("a"),
      pos;
    if (links) {
      for (i = 0; i < links.length; i++) {
        pos = links[i].href.indexOf("/seek/nearest.aspx?u=");
        if (pos !== -1) {
          return decodeURIComponent(links[i].href.substr(pos + 21).replace(/\+/g, '%20'));
        }
      }
    }
  }

  function parseNames(names) {
    // Filter out null or undefined entries, convert commas to semicolons, then convert to a comma-separated string.
    return encodeURIComponent(names
      .filter(function (n) {return n != undefined; })
      .map(function (n) {return (n + "").replace(/,/g, ";"); })
      .join());
  }

  // Don't run on frames or iframes
  if (window.top !== window.self) { return false; }

  console.info("Church Micro Stats v0.0.9");

  if (/\/my\/myfriends\.aspx/.test(location.pathname)) {
    // Your Friends
    currentPage = "friends";
  } else {
    if (/\/my\//.test(location.pathname)) {
      // On a My Profile page
      currentPage = "my";
    } else {
      if (cacheName) {
        // On a Geocache page...
        if (!/church micro/i.test(cacheName.innerHTML)) {
          // ...but not a Church Micro cache
          return;
        }
        currentPage = "cache";
      } else {
        currentPage = "profile";
      }
    }
  }

  switch (currentPage) {
  case "friends":
    userNames = getFriendNames();
    break;
  case "profile":
    if (profileName) {
      userNames = [profileName.textContent.trim()];
    }
    break;
  default:
    if (userField.length > 0 && userField[0].children && userField[0].children.length > 0) {
      userNames.push(userField[0].children[0].innerHTML.trim());
    }
    userNames.push(getHiderName());
    break;
  }

  userName = parseNames(userNames);
  if (!userName) {
    console.error("Church Micro Stats: Aborted - couldn't work out user name");
    return;
  }
  statsUri += userName;

  // Inject widget styling
  cmsCSS.type = 'text/css';
  if (cmsCSS.styleSheet) {
    cmsCSS.styleSheet.cssText = css;
  } else {
    cmsCSS.appendChild(document.createTextNode(css));
  }
  document.documentElement.firstChild.appendChild(cmsCSS);
  if (typeof GM_xmlhttpRequest === "function") { // jshint ignore:line
    // Use cross-site XHR to get raw stats
    GM_xmlhttpRequest({ // jshint ignore:line
      method: "GET",
      url: statsUri,
      onerror: function (response) {
        console.error("Church Micro Stats: couldn't retrieve statistics: " + response.statusText);
      },
      onload: function (response) {
        var jsontext, t;
        if (response.responseText) {
          try {
            t = response.responseText;
            jsontext = JSON.parse(t.slice(t.indexOf("(") + 1, t.lastIndexOf(")")));
          } catch (e) {
            console.error("Could not process Church Micro stats data. " + e);
          }
          if (jsontext && jsontext.cmstats && jsontext.cmstats.length > 0) {
            displayStats(jsontext.cmstats, currentPage);
          } else {
            if (jsontext.error) {
              console.error("Received error message from Church Micro stats server: " + jsontext.error);
            } else {
              console.warn("Received empty packet of Church Micro stats.");
            }
          }
        } else {
          console.warn("No response received for Church Micro stats.");
        }
      },
      ontimeout: function () {
        console.error("Church Micro Stats: timed out retrieving statistics.");
      },
      timeOut: 60000
    });
  } else {
    // Fall back to JSONP
    jsonp.src = statsUri;
    jsonp.type = "text/javascript";
    jsonp.id = "cms-jsonp";
    document.documentElement.firstChild.appendChild(jsonp);
    handler.text = "function handleCMstats(jsonp) { " +
      'var churchImage = "' + churchImage + '", userName = "' + userName + '";\n' +
      displayStats.toString() +
      "if (jsonp.cmstats && jsonp.cmstats.length > 0) { displayStats(jsonp.cmstats, '" + currentPage + "'); } else { console.error('Could not process Church Micro stats data.');}}";
    handler.type = "text/javascript";
    document.documentElement.firstChild.appendChild(handler);
    document.documentElement.firstChild.removeChild(handler);
  }
}());