Skip to content

Instantly share code, notes, and snippets.

@rinopo
Last active May 11, 2018 09:42
Show Gist options
  • Select an option

  • Save rinopo/0ae45995c314c0329fff425b56e408ec to your computer and use it in GitHub Desktop.

Select an option

Save rinopo/0ae45995c314c0329fff425b56e408ec to your computer and use it in GitHub Desktop.
Re-enable context menu, selection, and dragging.
// ==UserScript==
// @name tokyocaravan.jp.user.js
// @namespace https://gist.github.com/rinopo/0ae45995c314c0329fff425b56e408ec
// @updateURL https://gist.github.com/rinopo/0ae45995c314c0329fff425b56e408ec/raw/tokyocaravan.jp.user.js
// @downloadURL https://gist.github.com/rinopo/0ae45995c314c0329fff425b56e408ec/raw/tokyocaravan.jp.user.js
// @version 0.4
// @description Re-enable context menu, selection, and dragging.
// @author rinopo
// @match *://tokyocaravan.jp/*
// @match *://*.tokyocaravan.jp/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
const $body = document.querySelector('body');
$body.setAttribute('onmousedown', '');
$body.setAttribute('onselectstart', '');
$body.setAttribute('oncontextmenu', '');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment