Skip to content

Instantly share code, notes, and snippets.

@Griever
Griever / ページ内検索バーとアドオンバーを統合する.css
Created April 11, 2011 13:41
ページ内検索バーとアドオンバーを統合する.css
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
/* ページ内検索バーとアドオンバーが横に並ぶように */
#browser-bottombox {
-moz-box-orient: horizontal !important;
}
#FindToolbar {
border: none !important;
@Griever
Griever / TabsInTitlebar_mod.uc.js
Created April 3, 2011 12:37
タイトルバーとタブバーを合体させる実験
// ==UserScript==
// @name TabsInTitlebar_mod.uc.js
// @description 標準の TabsInTitlebar を改変して常に利用する
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @include main
// @version 0.0.1
// @compatibility Firefox 4
// ==/UserScript==
// @SS http://f.hatena.ne.jp/Griever/20110408002650
@Griever
Griever / 検索エンジン登録.js
Created February 22, 2011 13:50
検索エンジンを登録するサンプル
var xml =
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>エキサイト 英日翻訳</os:ShortName>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/x-icon;base64,AAABAAEAEBAQAAAAAAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAwAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAACAAACAAAAAgIAAgAAAAIAAgACAgAAAwMDAAICAgAAAAP8AAP8AAAD//wD/AAAA/wD/AP//AAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAABAQAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAkAAAAAAAEAmZAAAAAJMAAJADAAAJkAMAAAAwAAkACQCTAJAAAACZAJkAOQAAAJAAOQAJAAAAAAAJAAAAAAAAAAAAAAD/77OB+c+1gfifAAD8PyoA/j8BAP4/AAD9n4AE+18CAPYvYAPPb4AEm/cCALs3XQPzM1ME9zuzgf+/s4H//4AE</os:Image>
<SearchForm>http://www.excite.co.jp/world/</SearchForm>
<os:Url type="text/html" method="POST" template="http://www.excite.co.jp/world/english/?">
<os:Param name="before" value="{searchTerms}"/>
<os:Param name="wb_lp" value="ENJA"/>
</os:Url>
@Griever
Griever / overwriteMiddleMousePaste.uc.js
Created November 22, 2010 07:55
overwriteMiddleMousePaste.uc.js
// ==UserScript==
// @name overwriteMiddleMousePaste.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @include main
// ==/UserScript==
document.documentElement.addEventListener("click", function(event){
if (event.button !== 1 || !gPrefService.getBoolPref('middlemouse.paste')) return;
var localName = event.target.localName.toLowerCase();
@Griever
Griever / chromemargin.uc.js
Last active September 24, 2015 06:37
タイトルバーを枠だけにして Firefox Button を有効活用する
// ==UserScript==
// @name chromemargin.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @description タイトルバーを枠だけにする
// @include main
// @compatibility Firefox 12
// @version 0.0.3
// @note 0.0.3 Remove E4X
// @note とりあえず Fx12 の chromemargin の仕様変更に対応
// ==/UserScript==
@Griever
Griever / contextSearcher.uc.js
Created November 19, 2010 10:41
右クリック→検索の強化
// ==UserScript==
// @name contextSearcher.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @description 右クリック→検索の強化
// @include main
// @compatibility Firefox 4
// @version 0.0.4
// @note アイコンの無い検索エンジンがあるとエラーになるのを修正
// ==/UserScript==
// http://f.hatena.ne.jp/Griever/20100918161044
@Griever
Griever / comebackDownloadMonitor.uc.js
Created November 17, 2010 06:32
ステータスバーのダウンロードモニターを復活させる
// ==UserScript==
// @name comebackDownloadMonitor.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @include main
// @compatibility Firefox 4 Beta 7
// @version 0.0.1
// @description ステータスバーのダウンロードモニターを復活させる
// @note DL が一瞬で終わるとチラッと出て消えるのはご愛敬
// @note 4.0b7+Win7+Aero はダウンロード状態が表示できるらしいので不要
// ==/UserScript==
// ==UserScript==
// @name NoScript Modoki for storage
// @namespace http://d.hatena.ne.jp/Griever/
// @include http://*
// @exclude http://www.youtube.com/watch?*
// @exclude http://d.hatena.ne.jp/*/edit?*
// @exclude http://translate.google.co.jp/translate?*
// @exclude http://mobile.twitter.com/*
// @exclude http://twitter.com/*
// @exclude http://mail.google.com/*
@Griever
Griever / タブバーをタイトルバーの上に重ねる UserCSS.css
Created September 28, 2010 12:11
タブバーをタイトルバーの上に重ねる UserCSS
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
/* ツールバーなどを何 px 上にずらすか */
#main-window[chromemargin]:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) {
margin-top: -23px !important;/* 適宜修正 */
}
/* メニューバーを隠さない */
#main-window[chromemargin]:not([inFullscreen="true"]) #toolbar-menubar[type="menubar"][autohide="true"] {
@Griever
Griever / メニューバーをタイトルバーの上に重ねる.css
Created September 19, 2010 09:34
メニューバーをタイトルバーの上に重ねる UserCSS
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@-moz-document url(chrome://browser/content/browser.xul) {
#main-window[chromemargin]:not([inFullscreen="true"]) #navigator-toolbox:not([customizing="true"]) {
margin-top: -24px !important;/* 適宜修正 */
}
#main-window[chromemargin]:not([inFullscreen="true"]) #main-menubar {
min-height: 24px !important;/* 適宜修正 */
max-height: 24px !important;/* 適宜修正 */