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 customMatchers = { | |
toStartWith: function (util, customEqualityTesters) { | |
return { | |
compare: function (actual, expected) { | |
return { pass: actual.slice (0, expected.length) === expected }; | |
} | |
}; | |
} | |
}; |
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
// ==UserScript== | |
// @name ngnl_janken_quick.user.js | |
// @description ノーゲームノーライフじゃんけんゲーム 高速化 | |
// @version 20140610.0 | |
// @namespace http://rentan.org/ | |
// @author rentan | |
// @grant none | |
// @include http://www.ngnl-janken.com/ | |
// ==/UserScript== |
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
re = new RegExp('a(.)','g'); | |
a = 'akgatranavayakhahjajatdaa'; | |
//b = re.exec(a); | |
//for(i in b)alert(????); | |
var results = [ ]; | |
a.replace (re, function (s, p1) { | |
results.push ([ s, p1 ]); | |
return ''; | |
}); |