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
function json(str) { | |
var _str = str; | |
var innermostObjectReg = /(^|[[:,])\s*(?:\[(?:\s*(?:"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[Ee][+-]?\d+)?|true|false|null)\s*(?:,\s*(?:"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[Ee][+-]?\d+)?|true|false|null)\s*)*|\s*)\]|\{(?:\s*"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"\s*:\s*(?:"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[Ee][+-]?\d+)?|true|false|null)\s*(?:,\s*"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"\s*:\s*(?:"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[Ee][+-]?\d+)?|true|false|null)\s*)*|\s*)\})\s*(?=[\]},]|$)/g; | |
while (_str !== (_str = _str.replace(innermostObjectReg, '$10'))); | |
if (/^\s*(?:"(?:\\["\\/bfnrt]|\\u[0-9A-Fa-f]{4}|[^\\"])*"|-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[Ee][+-]?\d+)?|true|false|null)\s*$/.test(_str)) { | |
_str = str.replace(/\u2028|\u2029/g, function(c) { | |
return c === '\u2028' ? '\\u2028' : '\\u2029'; | |
}); | |
retu |
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 viewCharInfo.uc.js | |
// @description | |
// @include main | |
// @compatibility Firefox | |
// @namespace http://twitter.com/xulapp | |
// @author xulapp | |
// @license MIT License | |
// @version 2011/06/01 01:20 +09:00 | |
// ==/UserScript== |
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
function range(start, end, step) { | |
if (arguments.length < 1) | |
throw new TypeError('range expected at least 1 arguments, got 0'); | |
if (arguments.length < 2) | |
end = start, start = 0; | |
if (arguments.length < 3) | |
step = 1; |
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
javascript:(function(d,s){s=d.createElement('script');s.onload=function()WebP.processImages();d.querySelector('head').appendChild(s).src='https://github.com/antimatter15/weppy/raw/master/weppy.js'})(document) |
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
function permutate(fn) { | |
var result = []; | |
var queue = [Array.slice(arguments, 1)]; | |
while (queue.length) { | |
var args = queue.shift(); | |
for (var i = 0, len = args.length; i < len; i++) { | |
var arg = args[i]; | |
if (arg instanceof Array) break; | |
} |
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 (cond) | |
return; | |
if (cond) | |
return 'expression'; | |
if (cond) | |
one(); | |
if (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
(function(a, o) { | |
with (o) { | |
var __proto__ = {a: 1}; | |
alert(a); | |
} | |
})(0, {}); |
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== | |
// @include main | |
// @compatibility Firefox 4.0+ | |
// ==/UserScript== | |
document.getElementById('cmd_find').setAttribute('oncommand', 'gFindBar.hidden ? gFindBar.onFindCommand() : gFindBar.close();'); |
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
// ==uc== | |
// @include * | |
// @exclude chrome://browser/content/preferences/preferences.xul | |
// ==/uc== | |
(function Bug330458() { | |
var orgLoadOverlay = document.loadOverlay; | |
var queue = []; | |
var loading = false; |
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
# coding: utf-8 | |
import os | |
import re | |
import urllib | |
import locale | |
locale.setlocale(locale.LC_ALL, '') | |
pageurl = 'http://blog.k-tai-douga.com/' | |
re_fileurl = re.compile(r'(?<=")http://abechin\.sakura\.ne\.jp/sblo_files/k-tai-douga/ffmpeg/ffmpeg_bin_pentium4-\d+\.zip(?=")') |