Last active
July 11, 2021 08:14
-
-
Save blood72/ca18c9c1db4c3ea9f7034728b21ca484 to your computer and use it in GitHub Desktop.
Accept mouse right button click on Gmarket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Gmarket Mouse Click Enabler | |
// @version 1.1.0 | |
// @description accept mouse right button click | |
// @match http://item.gmarket.co.kr/* | |
// @match https://item.gmarket.co.kr/* | |
// @match http://*.auction.co.kr/* | |
// @match https://*.auction.co.kr/* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
(function () { | |
'use strict'; | |
var fn = function () { | |
// disable function | |
var mouseRightButtonDisabled = function () {}; | |
// show context menu | |
document.oncontextmenu = function () { return true; }; | |
}; | |
var el = document.createElement('script'); | |
el.type = 'text/javascript'; | |
el.textContent = 'var mouseRightButtonDisabled = function () {}; document.oncontextmenu = function () { return true; };'; | |
document.body.appendChild(el); | |
window.addEventListener('DOMContentLoaded', fn, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment