User:Mavoc/global.js

var STATS = $(' ', { style:"padding-left:12px" }); STATS.insertAfter('.license-description'); STATS.text("Page Load Statistics"); var NEWPP = $(' ', { style:"padding-left:12px; padding-bottom:12px" }); NEWPP.insertAfter(STATS); $('#mw-content-text').contents.filter(function {    if (this.nodeType == 8 && /^\s*(NewPP) /.test(this.data)) {NEWPP.text($.trim(this.data))} }); var LINKS = $(' ', { style:"padding-left:12px" }); LINKS.insertAfter(NEWPP); LINKS.text("Useful Links"); var LINKSHERE = $(' ', { style:"padding-left:12px; padding-bottom:12px" }); LINKSHERE.insertAfter(LINKS); var url = $(location).attr('href'); var domain = url.replace(/(^.*?fandom.com\/wiki\/)(.*?$)/, "$1"); var page = url.replace(/(^.*?fandom.com\/wiki\/)(.*?$)/, "$2"); LINKSHERE.text("What Links Here");

//$(location).attr('href').replace(/(^.*?fandom.com\/wiki\/)(.*?$)/, "$1Special:WhatLinksHere/$2")