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
// 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
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 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
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
(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 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(AP, isF) { | |
'use strict'; | |
// isArray : https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/isArray | |
Array.isArray || (Array.isArray = function (a) { | |
return Object.prototype.toString.call(a) == "[object Array]"; | |
}); | |
// toSource(Non-standard) | |
AP.toSource || (AP.toSource = function() { |
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
Object.prototype.extend || (Object.prototype.extend = function(e) { | |
if (!e && (this !== null) && e instanceof Object !== "object") throw new Error("引数はオブジェクトで!一個だけな!(・∀・)"); | |
for (var p in e) e.hasOwnProperty(p) && (this[p] = e[p]); | |
return this; | |
}); |