2005/04/01(金) [n年前の日記]
#3 [mozilla] Mozilla Firefox の userChrome.css 等への記述内容をメモ
右クリックメニュー(コンテキストメニュー)の項目を消すことができなくてちょっとハマった。userChrome.css への記述が間違ってたみたい。とりあえず、メモ。
userChrome.css には以下を追加。
userContent.css には、以下を追加。広告関係を一部非表示に設定。
user.js には、以下を追加。拡張機能 Copy URL+ の項目を増やしてる。
userChrome.css には以下を追加。
- 右クリックメニューの項目をいくつか非表示に。
- 検索バーにドロップダウンリストのボタンを追加。
- 拡張機能 Copy URL+ のアイコンを非表示に。
/* context menu item display off */
#context-back,
#context-forward,
#context-stop,
#context-sep-stop,
#context-savepage,
#context-sendpage,
#context-sep-open,
#context-bookmarklink,
#context-savelink,
#context-sendlink,
#context-copyemail,
#context-copyimage-contents,
#context-sendimage,
#context-setWallpaper,
#context-blockimage,
#context-sep-viewbgimage,
#context-viewbgimage
{ display: none; !important; }
/* search bar no rireki button */
#searchbar .autocomplete-history-dropmarker {
display: -moz-box !important;
-moz-binding: url("chrome://global/content/bindings/autocomplete.xml#history-dropmarker");
}
/* Copy URL plus Icon display OFF */
.icon-copyurlplus16 {
list-style-image : none !important;
}
『 { display: none; !important; } 』の前に、『,』を入れて、ハマってたらしい…。userContent.css には、以下を追加。広告関係を一部非表示に設定。
*[src*="rcm-images.amazon.com"],
*[src*="rcm-jp.amazon.co.jp"],
*[src*="rcm.amazon.com"],
*[src*="www.amazon.co.jp"],
a[href*="a8.net"],
a[href*="valueclick"],
a[href*="valuecommerce"],
a[href*="linksynergy.com"],
a[href*="trafficgate.net"],
a[href*="custom-click.net"],
a[href*="accesstrade.net"],
a[href*="webcashing.com"]{
display:none;}
td#taw1,td.ch[onmouseout="cs()"],
td.ad,
span.ad,a[onmouseout="cs()"][target="nw"],
body[onLoad="document.gs.reset()"] > p.e *,
body[onLoad="document.gs.reset()"] > table ~ table + table + table > tbody,
a[href*="googlesyndication"],
iframe[name*="google_ads_frame"]{
display: none !important;}
user.js には、以下を追加。拡張機能 Copy URL+ の項目を増やしてる。
user_pref('copyurlplus.menus.1.label','URL Title - copy');
user_pref('copyurlplus.menus.1.copy','%URL% %TITLE%');
user_pref('copyurlplus.menus.2.label','URL Title Sel - copy');
user_pref('copyurlplus.menus.2.copy','%URL% %TITLE% %SEL%');
user_pref('copyurlplus.menus.3.label','URL - copy');
user_pref('copyurlplus.menus.3.copy','%URL%');
user_pref('copyurlplus.menus.4.label','Title -copy');
user_pref('copyurlplus.menus.4.copy','%TITLE%');
本当は、JSAction 側で同等処理をするスクリプトを記述すれば、Copy URL+ は外せるんだけど。書くのが面倒で…(爆)
[ ツッコむ ]
以上です。