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 MDN_Languages_AlphabetOrder = { | |
"ar" : "عربي", | |
"ca" : "català", | |
"cs" : "Čeština", | |
"de" : "Deutsch", | |
"el" : "Ελληνικά", | |
"en-us" : "English (US)", | |
"es" : "Español", | |
"fa" : "فارسی", | |
"fi" : "suomi", |
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(SP) { | |
'use strict'; | |
SP.tag = function(tagname) { | |
return '<' + tagname + '>' + this + '</' + tagname + '>'; | |
}; | |
SP.anchor || (SP.anchor = function(anchor) { | |
return '<a id="' + anchor + '" name="' + anchor + '">' + this + '</a>'; | |
}); |
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 a = [ | |
$("#wikiArticle a:contains('(spam)')").parent(), | |
$("#wikiArticle a:contains('blablablabla')").parent(), | |
$("#wikiArticle a:contains('MyTestPage')").parent(), | |
$("#wikiArticle a:contains('Redirect 1')").parent(), | |
$("#wikiArticle a:contains('slugslug')").parent(), | |
$("#wikiArticle a:contains('img src=')").parent(), | |
$("#wikiArticle li:contains('(external)')"), | |
$("#wikiArticle li:contains('[Error]')"), | |
$("#wikiArticle li:contains('ja/docs/Talk:')"), |
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 a = [ | |
$("#document-list a:contains('(spam)')").parent(), | |
$("#document-list a:contains('blablablabla')").parent(), | |
$("#document-list a:contains('MyTestPage')").parent(), | |
$("#document-list a:contains('Redirect 1')").parent(), | |
$("#document-list a:contains('slugslug')").parent(), | |
$("#document-list a:contains('img src=')").parent(), | |
$("#document-list li:contains('(external)')"), | |
$("#document-list li:contains('[Error]')"), | |
$("#document-list li:contains('/docs/Talk:')"), |
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
javascript: (function() { | |
var a = document.createElement("a"), | |
u = location.href, | |
t = document.title || u, | |
e = (function() { | |
var map = { | |
'<': '<', | |
'>': '>', | |
'&': '&', | |
'"': '"' |
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 0.1.6 | |
(function() { | |
"use strict"; | |
if(!HTMLCanvasElement) return; | |
var CRC2DP = CanvasRenderingContext2D.prototype, | |
PI_PER_180 = Math.PI / 180; | |
// コンテキストの内容を全消去 |
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(AP) { | |
AP.fill || (AP.fill = function() { | |
if (arguments.length === 0) return this; | |
for (var r = this.slice(), i = arguments[1] || 0, l = (arguments[2] + arguments[1] || this.length - arguments[1] + 1) || this.length; i < l; ++i) { | |
r[i] = arguments[0]; | |
} | |
return r; | |
}); | |
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(SP) { | |
var _t = "[\x09-\x0D\x20\xA0\x85\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]+", | |
_l = new RegExp("^" + _t), | |
_r = new RegExp(_t + "$"); | |
// polyfills | |
SP.trimLeft = function() { return this.replace(_l, ""); }; | |
SP.trimRight = function() { return this.replace(_r, ""); }; | |
SP.trim = function() { return this.trimLeft().trimRight(); }; |
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(SP) { | |
SP.endsWith || (SP.endsWith = function(str, pos) { | |
pos = (pos === undefined) ? this.length : Math.floor(+pos); | |
str = str.toString(); | |
var start = Math.min(Math.max(pos, 0), this.length) - str.length; | |
if (start < 0) return !1; | |
var idx = ''.indexOf.call(this, str, start); | |
return idx === start; | |
}); |