nikkei.comで右クリックを使えるようにするGreasemonkeyスクリプト
日本経済新聞のページ見てる最中にいきなり右クリックが使えなくなって、Macbookのタッチパッドが壊れたかと焦った。動きを見るに、DOMContentLoadedのタイミングでcontextmenuイベントに悪さしてる様なのでjQuery.unbindした。これくらいなら元のソースを読まなくても勘でなんとかなる*1
// ==UserScript== // @name RightClickForNikkei.com // @namespace http://d.hatena.ne.jp/hagino_3000/ // @description Enable contextmenu in nikkei.com // @include http://*.nikkei.com* // ==/UserScript== (function() { if (unsafeWindow && unsafeWindow.jQuery) { (function($, document) { $(function() { $(document.body).unbind('contextmenu'); }); })(unsafeWindow.jQuery, unsafeWindow.document); } else { setTimeout(arguments.callee, 500); } })();
インストールはこちらrightclickfornikkei.user.js