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 GMEasyInstall | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http* | |
// ==/UserScript== | |
function fixLink(doc) { | |
$$('a[href$=".user.js"]', doc) | |
.forEach(function(a) { | |
a.href += "#"; | |
}); |
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 MDCJa2En | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http://developer.mozilla.org/ja/* | |
// ==/UserScript== | |
function ja2en(doc) { | |
Array.forEach(doc.getElementsByClassName('new'), | |
function(a) { | |
a.href = a.href.replace("ja","en"); | |
}); |
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 SmartLDR | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
function evalInPage(fun) { | |
location.href = "javascript:void (" + fun + ")()"; | |
} | |
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* set default namespace to XUL */ | |
/* URLバーのIMEをOFFに */ | |
#urlbar *|input { | |
ime-mode: inactive !important; | |
} | |
/* MacでもFaviconを表示 */ | |
.bookmark-item[image] .toolbarbutton-icon { | |
padding: 0 !important; |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
/* LivedoorReaderの広告を削除 */ | |
@-moz-document domain("reader.livedoor.com") { | |
.ads, | |
.grayline:first-child, | |
.inner-box, | |
.Last, | |
span[onmouseup="init_find_job()"]{ | |
display:none !important; |
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
function $N(name, a) | |
[[i == "className" ? "class": i, a[i]] | |
for (i in a) if (a.hasOwnProperty(i))] | |
.reduce((function(elem, [attr, value]) | |
(elem.setAttribute(attr, value), elem)), | |
document.createElement(name)); | |
$N("div", {className: "foo", id: "bar"}); // <div id="bar" class="foo"> |
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
Function.prototype.bind = function bind() { | |
var args = Array.slice(arguments), | |
thisObj = args.shift(), | |
self = this; | |
return function () | |
self.apply(thisObj, args.concat(Array.slice(arguments))); | |
}; |
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 NicoVideoAutoPlay | |
// @namespace http://d.hatena.ne.jp/javascripter/ | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
location.href = "javascript:" + function () { | |
var flvplayer = document.getElementById("flvplayer"); | |
(function play() { | |
try { |
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
(function () { | |
var last = null; | |
(function request() { | |
with (new XMLHttpRequest()) { | |
open('get', location.href, true); | |
send(null); | |
onload = function () { | |
if (!last || last == this.responseText) { | |
last = this.responseText; | |
setTimeout(request, 100); |
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 operator = { | |
add: function (a, b) { | |
return a + b; | |
}, | |
contains: function (a, b) { | |
return a in b; | |
}, | |
division: function (a, b) { | |
return a / b; | |
}, |
OlderNewer