This file contains hidden or 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
;; #InstallKeybdHook | |
/* | |
^ Ctrl | |
+ Shift | |
! Alt | |
# Win | |
<! 左Alt | |
>! 右Alt | |
*/ |
This file contains hidden or 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
<!doctype html> | |
<html> | |
<head> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
</head> | |
<body> | |
<div style="display: inline-block;">0</div><div style="display: inline-block;">10</div><div style="display: inline-block;">20</div><div style="display: inline-block;">30</div> | |
</body> | |
</html> |
This file contains hidden or 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 Gigazine - Load Image Immediately | |
// @include http://gigazine.net/* | |
// ==/UserScript== | |
Array.forEach(document.querySelectorAll('.lazy'), function(img){ | |
img.src = img.dataset.original; | |
}); |
This file contains hidden or 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 LDR - Fix Unmatched Print | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
with(unsafeWindow){ | |
addAround(API.prototype, 'post', function(proceed, args, target, name){ | |
switch(target.ap){ | |
case '/api/unread': | |
case '/api/all': |
This file contains hidden or 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
<body onkeydown="alert(event.key)"></body> |
This file contains hidden or 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
if(!Array.slice) | |
Array.slice = Function.prototype.call.bind(Array.prototype.slice); |
This file contains hidden or 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 iTS - Protect Auto Launch | |
// @include https://itunes.apple.com/* | |
// @run-at document-end | |
// ==/UserScript== | |
document.body.onload = function(){}; |
This file contains hidden or 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 expects = [ | |
'!aa-a', | |
'_______z', | |
'___a', | |
'__a', | |
'_1', | |
'_a', | |
'_aa-a', | |
'1-a', | |
'a', |
This file contains hidden or 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 Normalization = { | |
conds : [ | |
['\u3099', 78, '\u3094\u30F4'], | |
['\u3099', 1, 'がぎぐげござじずぜぞだぢづでどばびぶべぼガギグゲゴザジズゼゾダヂヅデドバビブベボ'], | |
['\u309A', 2, 'ぱぴぷぺぽパピプペポ'] | |
] | |
, | |
decompress : function(text){ | |
// 濁音/半濁音を分離する | |
Normalization.conds.forEach(function(cond){ |
This file contains hidden or 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 context = {a : 1, b : 2}; | |
withContext(context, () => { | |
console.log(a); // 1 | |
}); | |
function withContext(context, func){ | |
eval( |