Context Menu Enabler

    @@ -1,9 +1,13 @@ /* - * @title Remove oncontextmenu="return false" - * @description Enable right click - * @license MIT License - * @require jQuery + * @title Context Menu Enabler + * @description Enable Context Menu (Forked) + * @contributor kenafad http://let.hatelabo.jp/kenafad/let/gYC-yrDo1OjLHA (Fork of) + * @contributor youpy https://userscripts.org/scripts/show/14058 + * @license Unknown (as-is) */ +// simplify and independent of jQuery -$('*').unbind('contextmenu'); -$('*').removeAttr('oncontextmenu'); +(function() { + // c.f. https://userscripts.org/scripts/review/14058 + document.body.setAttribute('oncontextmenu', 'return true'); +})();
  • /*
     * @title Context Menu Enabler
     * @description Enable Context Menu (Forked)
     * @contributor kenafad http://let.hatelabo.jp/kenafad/let/gYC-yrDo1OjLHA (Fork of)
     * @contributor youpy https://userscripts.org/scripts/show/14058
     * @license Unknown (as-is)
     */
    // simplify and independent of jQuery
    
    (function() {
        // c.f. https://userscripts.org/scripts/review/14058
        document.body.setAttribute('oncontextmenu', 'return true');
    })();
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2012/09/08 02:23:58 - 2012-09-08
  2. 2012/09/08 02:09:00 - 2012-09-08