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 hide-geolocation-at-google-search | |
// @namespace http://twitter.com/uu59 | |
// @version 1.0.0 | |
// @include http://*.google.*/search* | |
// ==/UserScript== | |
(function(w){ | |
var trap = w.document.getElementById('lc'); | |
trap.parentNode.removeChild(trap); |
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
if (phantom.state.length === 0) { | |
if (phantom.args.length !== 1) { | |
console.log('Usage: aa.js imagename'); | |
phantom.exit(); | |
} else { | |
var address = 'http://amachang.sakura.ne.jp/misc/aamaker/'; | |
phantom.state = 'aamaker'; | |
phantom.viewportSize = { width: 600, height: 100 }; | |
phantom.open(address); | |
} |
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
if (phantom.state.length === 0) { | |
var address = 'http://amachang.sakura.ne.jp/misc/aamaker/'; | |
phantom.state = 'aamaker'; | |
phantom.viewportSize = { width: 600, height: 100 }; | |
phantom.open(address); | |
} else { | |
try { | |
setInterval(function(){ | |
var m = document.getElementById('target').innerHTML; | |
console.log(m); |
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
if (!phantom.state) { | |
// request process | |
phantom.state = 'betuyaku'; | |
var url = "http://portal.nifty.com/2011/01/index.htm"; | |
phantom.open(url); | |
} else { | |
// response process | |
(function(){ | |
var jquerySrc = "https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"; | |
var s = document.createElement('script'); |
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
# -- coding: utf-8 | |
=begin | |
$ ruby checkurl.rb "http://www.yahoo.co.jp/" | |
301 http://www.yahoo.co.jp/s/88883 | |
301 http://www.yahoo.co.jp/r/c1 | |
301 http://www.yahoo.co.jp/r/c5 | |
301 http://www.yahoo.co.jp/r/c12 | |
301 http://www.yahoo.co.jp/s/88793 | |
301 http://www.yahoo.co.jp/r/c2 |
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 Tumblr Auto Image Expansion | |
// @namespace http://twitter.com/uu59 | |
// @include http://www.tumblr.com/* | |
// ==/UserScript== | |
(function(){ | |
function auto_image_expansion(target) { | |
var doc = target || document; | |
var img = doc.querySelectorAll('div.post_content p img.inline_external_image'); |
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
while :;do curl -I http://www.kantei.go.jp/jp/kikikanri/jisin/20110311miyagi/ 2>/dev/null|ruby -rtime -e"p Time.parse STDIN.read.match( /L.*?:(.*)/)[1]";sleep 9;done |
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 Always noreferrer links | |
// @namespace http://twitter.com/uu59 | |
// @include * | |
// ==/UserScript== | |
(function(){ | |
var process = function(docroot){ | |
Array.prototype.forEach.call( | |
docroot.querySelectorAll('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
<?php | |
class File { | |
private $fp = null; | |
function __construct($path) { | |
$this->path = $path; | |
} |
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 kyoko-np warning | |
// @namespace http://twitter.com/uu59 | |
// @version 1.0.0 | |
// @include http://kyoko-np.net/* | |
// ==/UserScript== | |
(function(){ | |
var h = document.querySelectorAll('font[size="5"] b')[1]; | |
h.innerHTML = '[kyoko-np] ' + h.innerHTML; |
OlderNewer