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 JK Walker | |
// @description LDRize like JK scroll. | |
// @namespace http://d.hatena.ne.jp/Griever/ | |
// @license MIT License | |
// @compatibility Firefox 12 | |
// @version 0.0.1 | |
// @include http://** | |
// @include https://* | |
// @exclude http://reader.livedoor.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
// 最後に開いたサイドバーを記憶してトグル | |
window.toggleSidebar_org = window.toggleSidebar; | |
eval("window.toggleSidebar = " + window.toggleSidebar_org.toString() | |
.replace(/if \(!commandID\) \{[^}]+}/, <![CDATA[ | |
var lastcommand = sidebarBox.getAttribute("sidebarcommand") || | |
sidebarBox.getAttribute("sidebarlastcommand") || | |
"viewBookmarksSidebar"; | |
sidebarBox.setAttribute('sidebarlastcommand', lastcommand); | |
document.persist("sidebar-box", "sidebarlastcommand"); | |
if (!commandID) { |
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
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url-prefix(data:image/), | |
regexp(".*\.(jpe?g|png|gif|bmp|svg|JPE?G|PNG|GIF|BMP|SVG)([?#].*)?$") { | |
body { | |
background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAAAAABWESUoAAAAHUlEQVQ4y2P4gQYeoAGGUQUjSgG6ALqGUQUjSgEAdjWwLh+tpFgAAAAASUVORK5CYII=") !important; | |
} | |
body > img[src][alt] { | |
box-shadow: 0px 0px 2px 1px navy; | |
} |
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 DocumentMap.uc.js | |
// @description スクロールバーにページの全貌を表示する | |
// @namespace http://d.hatena.ne.jp/Griever/ | |
// @author Griever | |
// @license MIT License | |
// @compatibility Firefox 11 | |
// @charset UTF-8 | |
// @include main | |
// @version 下書き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(){ | |
/* | |
Adblock のフィルタを urlfilter.ini に変換する | |
ついてに広告カット CSS も作成 | |
https://adblock-plus-japanese-filter.googlecode.com/hg/abp_jp.txt で実行 | |
|| で始まる行は http, https の2行に、^ は "/*" に、$のある行はスルー。 | |
CSS は -moz-document を使っている部分があるので Opera では前半のみ利用可能 | |
*/ |
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
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); | |
/* | |
CSS だけでできたヽ(´ー`)ノ…できてなかった>< | |
*/ | |
#context-bookmarkpage, | |
/*#context-bookmarkframe, | |
#context-bookmarklink,*/ | |
#menu_bookmarkThisPage { | |
-moz-binding: url("chrome://global/content/bindings/menu.xml#menuitem-iconic") !important; | |
} |
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 Pano++ | |
// @description Panoのサイドバーでタブのコンテキストメニューを使えるようにする | |
// @namespace http://d.hatena.ne.jp/Griever/ | |
// @author Griever | |
// @include chrome://pano/content/sidebar.xul | |
// @compatibility Firefox 5 | |
// @version 0.0.1 | |
// ==/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() { | |
var win = document.commandDispatcher.focusedWindow; | |
if (!win || win == window) win = content; | |
var sel = win.getSelection(); | |
var urls = []; | |
for (var i = 0, len = sel.rangeCount; i < len; i++) { | |
Array.forEach(sel.getRangeAt(i).cloneContents().querySelectorAll('a:not(:empty)'), function(a){ | |
if (urls.indexOf(a.href) === -1) |