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 url = "http://example.com/"; | |
var re = /https?:\/\/([^/]*)\//i; | |
url.match(re); // ["http://example.com", "example.com"] |
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
52a53 | |
> | |
57a59 | |
> | |
69,70c71 | |
< } | |
< else if (x) { | |
--- | |
> } else if (x) { | |
72,81c73,75 |
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== | |
// @match http://togetter.com/li/* | |
// ==/UserScript== | |
(function (element) { | |
if (element !== null) { | |
var event = document.createEvent("MouseEvents"); | |
event.initEvent("click", false, true); | |
element.dispatchEvent(event); | |
} |
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
alias slck="/System/Library/Frameworks/ScreenSaver.framework/Resources/ScreenSaverEngine.app/Contents/MacOS/ScreenSaverEngine" |
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== | |
// @match *://*/* | |
// ==/UserScript== | |
(function (anchors) { | |
for (var i = 0, l = anchors.length; i < l; i++) { | |
anchors[i].target = "_blank"; | |
} | |
})(document.querySelectorAll("a[href^='http']:not([href^='" + location.href + "'])")); |
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== | |
// @match *://twitter.com/* | |
// ==/UserScript// | |
(function() { | |
setInterval(function() { | |
jQuery.event.trigger({type: "keypress", which: 0x2e}); | |
}, 10000); | |
}); |
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
⚡ /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/twitter-stream-0.1.14/lib/twitter/json_stream.rb:121:in `<<': Could not parse data entirely (HTTP::Parser::Error) | |
from /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/twitter-stream-0.1.14/lib/twitter/json_stream.rb:121:in `receive_data' | |
from /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine' | |
from /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run' | |
from /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/earthquake-0.7.5/lib/earthquake/core.rb:102:in `start' | |
from /home/akira/.rvm/gems/ruby-1.9.2-p290/gems/earthquake-0.7.5/bin/earthquake:40:in `<main>' |
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
# 普段はこう書いている | |
install: --no-rdoc --no-ri | |
update: --no-rdoc --no-ri | |
search: --remote | |
specification: --remote |
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
# Scroll step size | |
60px | |
# Exclude URLs | |
http*://twitter.com/* | |
http*://gmail.google.com/* | |
http://b.hatena.ne.jp/viewer | |
http*://reader.livedoor.com/* | |
# Key mappings |
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== | |
// @match *://*/* | |
// ==/UserScript== | |
(function() { | |
var style = "font-size: 12px;"; | |
var div = document.createElement("div"); | |
document.body.appendChild(div); | |
document.addEventListener("mousemove", function(e) { | |
var x = e.pageX + 5, y = e.pageY + 5; |