You need to be logged in to post in the forums. If you do not have an account, please sign up first.
検索語のハイライトが出来ない。
下記に紹介のword highlightが効かないのですが、10.51で動作するはずですよね。http://d.hatena.ne.jp/os0x/20090610/1244609041
oAutoPagerize.jsは動作しているのですが、word_highlight.js、UTF-8で保存すれば良いんですよね?
他に方法があれば、ご紹介願います。
//当該userJS を使用していないので,参考情報です.
> 10.51で動作するはずですよね.
ざっと見たところ,『Opera 10』との記述までしか 発見できませんでした.
Opera 10.5x で動いた,との記述がないと,怪しいかもしれません.
Opera 10.10 -> 10.51 のヴァージョンアップで,
一部 UserJS が動かなくなることがありました.
時折,マイナーヴァージョンアップでも
JavaScriptエンジンの挙動が変わっているようです.
UserJS の書き方によっては 以前のヴァージョンで動いていたものが
動かなくなる,特定のページで クラッシュするようになる,というのは ありがちです.
その周りで,10.10等 以前の 10.xx系 マイナーヴァージョン で動いていたが,
10.5x で動かなくなった,という可能性も あるかもしれません.
//特に,10.5x では JavaScriptエンジン 変更したらしいんで.
10.10 -> 10.5x で 知っている範囲だと,
document.addEventListener('load', ...) が 効かないため,
window.addEventListener('load', ...) に読み替える必要がありました.
当該UserJS だと,document.addEventListener('load', ...) は ありませんでしたが….
//document のイベントで,
//load以外のイベントが どれだけ無効/何に読み替えたらいい? というのは
//調査していません.
//以前,Firefox で無効だった document.load 以外は 動きそうな気は していますが.
自デバッグするなら,
> 10.51で動作するはずですよね.
ざっと見たところ,『Opera 10』との記述までしか 発見できませんでした.
Opera 10.5x で動いた,との記述がないと,怪しいかもしれません.
Opera 10.10 -> 10.51 のヴァージョンアップで,
一部 UserJS が動かなくなることがありました.
時折,マイナーヴァージョンアップでも
JavaScriptエンジンの挙動が変わっているようです.
UserJS の書き方によっては 以前のヴァージョンで動いていたものが
動かなくなる,特定のページで クラッシュするようになる,というのは ありがちです.
その周りで,10.10等 以前の 10.xx系 マイナーヴァージョン で動いていたが,
10.5x で動かなくなった,という可能性も あるかもしれません.
//特に,10.5x では JavaScriptエンジン 変更したらしいんで.
10.10 -> 10.5x で 知っている範囲だと,
document.addEventListener('load', ...) が 効かないため,
window.addEventListener('load', ...) に読み替える必要がありました.
当該UserJS だと,document.addEventListener('load', ...) は ありませんでしたが….
//document のイベントで,
//load以外のイベントが どれだけ無効/何に読み替えたらいい? というのは
//調査していません.
//以前,Firefox で無効だった document.load 以外は 動きそうな気は していますが.
自デバッグするなら,
- alert() で デバッグプリント 突っ込んでみて,どこら辺で クラッシュしているか 調べる
- [ページ] -> [開発者用ツール] -> [エラーコンソール] で,
ドロップダウンを [すべて] から [JavaScript] にして,
UserJS で エラーが出ていないか 調べる
ご丁寧なレス、ありがとうございます。
とりあえず、Scriptオプションでエラーコンソールを開いてみました。
下記内容のダイアログが出ますが、Scriptの知識のない私にはどう処置すべきか分かりません。
JavaScript - http://my.opera.com/japanese/forums/forum.dml?id=10651
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>() in word_highlight.js:
word_hightlight(true);
JavaScript - http://my.opera.com/japanese/forums/topic.dml?id=530112
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
ご指摘の[開発者用ツール] -> [エラーコンソール] でみると、次のダイアログが出ました。
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-topright is an unknown property
Line 268:
border-radius-topright:4px;
------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-bottomleft is an unknown property
Line 269:
border-radius-bottomleft:4px;
--------------------------^
CSS - http://static.myopera.com/community/css/users/103/main.css
Linked-in stylesheet
Declaration syntax error
Line 2181:
filter:alpha(opacity=0) !important;
------------------------------------^
JavaScript - http://my.opera.com/japanese/forums/forum.dml?id=10651
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>() in word_highlight.js:
word_hightlight(true);
CSS - http://static.myopera.com/community/css/users/103/main.css
Linked-in stylesheet
Declaration syntax error
Line 2181:
filter:alpha(opacity=0) !important;
------------------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-topright is an unknown property
Line 268:
border-radius-topright:4px;
------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-bottomleft is an unknown property
Line 269:
border-radius-bottomleft:4px;
--------------------------^
JavaScript - http://my.opera.com/japanese/forums/topic.dml?id=530112
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
CSS - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Inlined stylesheet
zoom is an unknown property
Line 1:
or:#c9d7f1 #36c #36c #a2bae7;z-index:1001}.gb1{margin-right:.5em}.gb1,.gb3{zoom:
--------------------------------------------------------------------------------^
CSS - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Inlined stylesheet
Invalid value for property: display
Line 1:
t:0;margin:6px;position:absolute;top:0;z-index:1}.ri_sp{display:-moz-inline-box;
--------------------------------------------------------------------------------^
JavaScript - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
word_hightlight(true);
JavaScript - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
アドバイス、よろしくお願いします。
とりあえず、Scriptオプションでエラーコンソールを開いてみました。
下記内容のダイアログが出ますが、Scriptの知識のない私にはどう処置すべきか分かりません。
JavaScript - http://my.opera.com/japanese/forums/forum.dml?id=10651
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>() in word_highlight.js:
word_hightlight(true);
JavaScript - http://my.opera.com/japanese/forums/topic.dml?id=530112
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
ご指摘の[開発者用ツール] -> [エラーコンソール] でみると、次のダイアログが出ました。
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-topright is an unknown property
Line 268:
border-radius-topright:4px;
------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-bottomleft is an unknown property
Line 269:
border-radius-bottomleft:4px;
--------------------------^
CSS - http://static.myopera.com/community/css/users/103/main.css
Linked-in stylesheet
Declaration syntax error
Line 2181:
filter:alpha(opacity=0) !important;
------------------------------------^
JavaScript - http://my.opera.com/japanese/forums/forum.dml?id=10651
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>() in word_highlight.js:
word_hightlight(true);
CSS - http://static.myopera.com/community/css/users/103/main.css
Linked-in stylesheet
Declaration syntax error
Line 2181:
filter:alpha(opacity=0) !important;
------------------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-topright is an unknown property
Line 268:
border-radius-topright:4px;
------------------------^
CSS - http://static.myopera.com/community/css/mobile/forums.css
Linked-in stylesheet
border-radius-bottomleft is an unknown property
Line 269:
border-radius-bottomleft:4px;
--------------------------^
JavaScript - http://my.opera.com/japanese/forums/topic.dml?id=530112
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
CSS - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Inlined stylesheet
zoom is an unknown property
Line 1:
or:#c9d7f1 #36c #36c #a2bae7;z-index:1001}.gb1{margin-right:.5em}.gb1,.gb3{zoom:
--------------------------------------------------------------------------------^
CSS - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Inlined stylesheet
Invalid value for property: display
Line 1:
t:0;margin:6px;position:absolute;top:0;z-index:1}.ri_sp{display:-moz-inline-box;
--------------------------------------------------------------------------------^
JavaScript - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
word_hightlight(true);
JavaScript - http://www.google.co.jp/search?client=opera&rls=ja&q=google&sourceid=opera&ie=utf-8&oe=utf-8
Uncaught exception: ReferenceError: Undefined variable: word_hightlight
Error thrown at line 14, column 3 in <anonymous function>():
word_hightlight(true);
アドバイス、よろしくお願いします。