Skip to content

Instantly share code, notes, and snippets.

@blood72
Last active July 11, 2021 08:14
Show Gist options
  • Save blood72/ca18c9c1db4c3ea9f7034728b21ca484 to your computer and use it in GitHub Desktop.
Save blood72/ca18c9c1db4c3ea9f7034728b21ca484 to your computer and use it in GitHub Desktop.
Accept mouse right button click on Gmarket
// ==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