Skip to content

Instantly share code, notes, and snippets.

@ImTheDeveloper
Last active January 3, 2018 20:08
Show Gist options
  • Save ImTheDeveloper/cac48f202858e3667b20d1ce77651642 to your computer and use it in GitHub Desktop.
Save ImTheDeveloper/cac48f202858e3667b20d1ce77651642 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name p3nguins User Scripts
// @namespace https://p3nguins.co.uk/
// @version 2.4
// @description We are Awesome
// @downloadUrl https://gist.github.com/ImTheDeveloper/cac48f202858e3667b20d1ce77651642/raw/p3ng.user.js
// @run-at document-start
// @exclude https://*/login*
// @exclude https://*/signup*
// @exclude https://*/register*
// @exclude https://*/support*
// @exclude https://*/manual*
// @exclude https://*/chat*
// @exclude https://*/forum*
// @exclude https://*/botfiles*
// @exclude https://pirate.planetarion.com/*
// @exclude https://ninja.planetarion.com/*
// @exclude https://forum.planetarion.com/*
// @exclude https://www.planetarion.com/*
// @include https://*.planetarion.com/*
// @include http://*.planetarion.com/*
// @include https://*.planetarion.com/*.p*
// @include http://*.planetarion.com/*.p*
// @include https://pa.ranultech.co.uk/*.p*
// @match https://*.planetarion.com/*.p*
// @match http://*.planetarion.com/*.p*
// @match https://*.planetarion.com/*
// @match http://*.planetarion.com/*
// @match https://pa.ranultech.co.uk/*.p*
// @copyright Original Copyright: 2008-2013, William Elwood (Will, will@howlingrain.co.uk). Adapted for p3nguins by munkee 2017
// @license GNU General Public License version 3; https://www.gnu.org/licenses/gpl.html
// ==/UserScript==
(function(w) {
var d = w.document, l = w.location;
if(!d || !l) return;
var s = d.createElement('script');
var path = l.pathname;
s.async = true;
s.setAttribute('type', 'text/javascript');
if (path === '/') {
s.setAttribute('src', 'https://p3nguins.co.uk/userscript/overview');
} else {
s.setAttribute('src', 'https://p3nguins.co.uk/userscript/'+ escape(path.replace(/\/?(.+)\.p.+/, '$1')));
}
inject();
function inject() {
var h = (d.head || d.getElementsByTagName('head')[0] || d.body || d.documentElement);
if(h) { h.insertBefore(s, h.firstChild); }
else { setTimeout(inject, 9); }
}
})(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment