This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const templatr = function Templatr () | |
{ | |
'use strict'; | |
const tokens = { | |
L_BRACE: '{', | |
R_BRACE: '}', | |
T_EQUAL: '=', | |
T_PIPE: '|' | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class constructor for a plugin manager | |
* | |
* Provides the ability to load and seal plugins on demand per instance | |
* incase one would want to have different settings per server. | |
* | |
* @return {PluginManager} | |
*/ | |
const PluginManager = function () { | |
this.prefix = '@'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* WatchNewPage.js | |
* | |
* This script allows one to set a process to watch for newly created pages | |
* on a wiki. When one is found it is subsequently recorded and a desktop | |
* notification dispatched to notify the user. | |
* | |
* Author: Colouratura | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function ( $ ) { | |
var conflicts = [ | |
[ 'Monster', 'Ghosts', 'Demon/Devil', 'Beings', 'Gods', 'Cryptids' ], | |
[ 'Books', 'Diary/Journal', 'Items/Objects' ], | |
[ 'Lost Episodes', 'Television' ], | |
[ 'Pokemon', 'Zelda', 'Video Games' ], | |
[ 'Holders', 'Ritual' ], | |
[ 'Holders', 'Items/Objects' ], | |
[ 'Holders', 'Places' ], | |
[ 'HPL', 'Lovecraftian', 'Suggested Reading' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Contractify | |
* Simple, safe, sealed contracts for JavaScript | |
* | |
* Contracts are a way of checking the arguments of a function as well as its result against | |
* a strictly defined set of pre- and post-conditions. Doing so helps to ensure that a function | |
* is passed arguments it expects and well as passes out a result the caller expects. | |
* | |
* In doing this Contractify allows you to supply a function that will be called before and after | |
* execution in which you can define the rules input and output must conform to. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Cobalt { | |
parse(expr) { | |
if (!typeof expr === 'string') throw new TypeError(`Type of expr is '${typeof expr}', expected string`); | |
this.__tags = [ 'color', 'strike', 'underline', 'bold', 'italic' ]; | |
return this.__parenthesize(this.__tokenize(expr)); | |
} | |
__parenthesize(str, lst) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const QuickTools = { | |
actions: {} | |
}; | |
QuickTools.findUserLinks = function () { | |
let links = $('#mw-content-text a'); | |
links = links.toArray() | |
.filter((link) => link.href.includes('User:')); | |
return links; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var DoveModal = function DoveModal() { | |
var schema = arguments[0]; | |
this._schema = schema; | |
this._handlers = []; | |
this._uniques = []; | |
this._inputs = []; | |
this._renderedSchema = null; | |
this._schemaID = null; | |
this.rendered = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window, document, mw) { | |
var ZION = function () { | |
this._scripts = []; | |
this.loaded = this.loaded(); | |
return this; | |
}; | |
ZION.prototype._getScriptURL = function (script) { | |
var split = script.split(':'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CheckAdoptions = function () { | |
this._adoptions = []; | |
this._concerns = []; | |
return this; | |
}; | |
CheckAdoptions.prototype.__fetchAdoptionsList = function () { | |
if (this._adoptions.length > 0) { | |
this._adoptions = []; | |
this._concerns = []; |
OlderNewer