Firefox userChrome.js greasemonkeyスクリプトスレ 9at SOFTWARE
Firefox userChrome.js greasemonkeyスクリプトスレ 9 - 暇つぶし2ch987:名無しさん@お腹いっぱい。
09/09/24 08:58:47 fwIuGkW/0
>>978の修正パッチ
@@ -14,7 +14,7 @@
   cacm.addEventListener('popupshowing', function() {
     mitem.hidden = !re.test(gContextMenu.onLink ?
                    gContextMenu.linkURL : gContextMenu.isContentSelected ?
-                   getBrowserSelection() : gContextMenu.docURL);
+                   getBrowserSelection() : gContextMenu.target.ownerDocument.location.href);
   }, false);
   nsContextMenu.prototype.openTubePlayer = function() {
     var lf = Components.classes['@mozilla.org/file/local;1']
@@ -25,7 +25,8 @@
     proc.init(lf);
     var url = this.onLink ?
               this.linkURL : this.isContentSelected ?
-              'http://' + getBrowserSelection().replace(/^h?ttp:\/\//, '') : this.docURL;
+              'http://' + getBrowserSelection().replace(/^h?ttp:\/\//, '') :
+              this.target.ownerDocument.location.href;
     proc.run(false, [url], 1);
   };
 })(); r


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch