User:Saftzie/common.js

//__NOINDEX__

(function (mw) { 'use strict';

var wgAction = mw.config.get( 'wgAction' ), wgPageName = mw.config.get( 'wgPageName' ), scripts = []; /* // I want pengLocations to run when I preview edits, too if ((wgPageName === 'Distractions_and_Diversions_Locations/Penguin_Hide_and_Seek') && (wgAction === 'submit')) {   scripts.push('MediaWiki:Common.js/pengLocations.js'); } if ((wgPageName === 'User:Saftzie/Penguins') && (wgAction === 'view')) {   mw.loader.load('http://dpaste.com/1S0Y2QA.txt'); //    scripts.push('User:Saftzie/app.phsl.js'); } if ($('#watchlist').length === 1) {   if (new Date.toISOString < '2015-10-15T00:00:00.000Z') {     mw.loader.load('http://pastebin.com/raw.php?i=gRPEHDkM'); // app.watch.js-0.2 }   else {     $('#watchlist').empty.text('Watchlist paste expired'); } }  scripts.push('User:Saftzie/ui.clock.js');

if (scripts.length > 0) {   window.importArticles(    {      type: 'script',      articles: scripts    }); }

$(function  {    // Delete the gadget clock when the pref gets set    $('#display-timer').remove;  }); }(mediaWiki));