Skip navigation.

おぺら ぷらす あるふぁ。

Opera、Excel、Windowsなんかの備忘録とか(ぼやき含む) Japanese only

September 2008

( Monthly archive )

user.jsフォルダの挙動がおかしい。

,

  1. www.google.comのuser.jsフォルダをuserjs\googleと指定。
  2. はてなスターのように「3」を省略し「w3w」と表示するグリースモンキーのwwwww.user.jsをuserjsフォルダにダウンロード。
  3. 念のため、000.user.js、aaa-greasemonkey-functions.user.js、aagmfunctions.js、a-lib-stacktrace.js、a-lib-xmlhttp-cd.jsも同階層フォルダに保存。
  4. iGoogleを開く。
  5. 何故か上位フォルダに保存しているwwwww.user.jsが適用される。


なーぜーだー。
全モジュールに適用されるわけではないので、iframeが関係しているのだろうか…?
でも、iframeのドメインごとにuser.jsフォルダを変えても変化なしなんだよなぁ。。

つか、bookmarkletだったら最高。
とりあえず外しておいた。

JANコード検索エンジンの検索の作成について。

,

最近家計簿を始めましたが、何を買ったか忘れがち。
そんな時、JANコード検索エンジンが便利です。
どうせならOperaの検索に入れてしまおうと思ってたのですが、右クリックからの検索の作成が出来ません。。
で、試行錯誤したら出来たので記事にしてみました。
需要があるかはさておき、自分的にはとても便利になったので。

  1. 適当なテキストエリアで右クリック。
  2. タイトルを分かりやすく変更。(わしは「JANコード」にした)
  3. キーワードも適当に変更。(わしは「jan」にした)
  4. 詳細>>をクリックし、アドレスは「http://jancode.net/」に変更
  5. クエリ文字は「word=%s&act=Search&=検索」を入力
  6. 「POSTを使用」にチェック


search.ini風に言うと、こんな感じ。(××は直して下さい)
[Search Engine ××]
ID=××
Name=JANコード
Verbtext=0
URL=http://jancode.net/
Query=word=%s&act=Search&=検索
Key=jan
Is post=1
Has endseparator=0
Encoding=utf-8
Search Type=0
Position=-1
Nameid=0
Deleted=0

Google検索結果に番号を振るuser.cssとGoogleカレンダー用user.css修正。

,

Hidetoさんの作成されたuser.cssを使わせて頂いていましたが、Google側の仕様変更に伴い修正しました。

■Opera The Fastest Browser on Earth>user css と 自動番号
http://opera8.seesaa.net/article/14335539.html

仕組みはよく分かってないのですが、とりあえず動いているのでよしとします。
なお、oAutoPagerize.jsを使用していると、次ページにも番号が継続してカウントされます。
また、わし作成のGoogleカレンダーなどで使用するGoogle用ユーザスタイルシートもあわせて修正しました。
ただし、iGoogleのGoogleカレンダーモジュールについては、当方では力不足のため対応出来ませんでした。。


Google検索結果に番号を振る
/* 検索結果を見やすいようにCSS変更 */

li.g,div.g{
color: #4d5264 !important;
background-color: #f6f6fa !important;
margin-bottom: -0.5em !important;
padding: 0.3em !important;
border-color : #969bb1;
border-width : 1px 2px 2px 1px;
border-style : solid;
min-height : 104px;
}

li.g,div.g[style="margin-left:2.5em"] {
margin-left : 2.5em !important;
padding : 0.3 !important;
padding-bottom : 0.3em !important;
font-size : 83% !important;
line-height: 1.3em ;
}

 
/*番号生成*/

h3.r:before { content: counter(item) ". ";
counter-increment: item;
font-size:150%;
color:#c9171e;


Googleカレンダーのカレンダー部分のCSS変更 *日曜始まり版です
/* Googleカレンダーの土日の色変更 */
  #decowner > [style*="left: 8"] > .dayOfMonth {
    color: #00F !important;
    background-color: #CCF !important;
  }
  #decowner > [style*="left: 8"] > .dayNotInMonth {
    color: #88F !important;
    background-color: #DDF !important;
  }
  #decowner > [style*="left: 8"] > .currentDay {
    background-color: #99F !important;
  }
  #decowner > [style*="left: 0"] > .dayOfMonth {  
    color: #F00 !important;
    background-color: #FCC !important;
  }
  #decowner > [style*="left: 0"] > .dayNotInMonth {
    color: #F88 !important;
    background-color: #FDD !important;
  }
  #decowner > [style*="left: 0"] > .currentDay {
    background-color: #F99 !important;
  }

/* カレンダー上の土日表示の色の変更 */
  #colheaders > div:first-child {
    background-color:#FDD !important;
    color:#F00 !important;
  }
  #colheaders > div+div+div+div+div+div+div {
    background-color: #CCF !important;
    color: #00F !important;
  }

/* 左上の小さいカレンダーの土日の色変更 */
  [id^="dp_0_day_"][id$="_6"] {
    color: #22F;
  }

 td[unselectable="on"][class="DP_dayh"][id="dp_0_day_6"] {
    color: #00F !important;
    background-color: #CCF !important;}

  [id^="dp_0_day_"][id$="_0"] {
    color: #F22;
  }

 td[unselectable="on"][class="DP_dayh"][id="dp_0_day_0"] {
    color: #F00 !important;
    background-color: #FCC !important;}