-
-
Save morisono/3013cfb6b38541116b606c157d52c89a to your computer and use it in GitHub Desktop.
Yahooオークション右クリ禁止削除
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 Yahooオークション右クリ禁止削除 | |
| // @namespace https://gist.github.com/slimymars/66e2318a559b79272ad7f51ec45c3c8b | |
| // @grant none | |
| // @version 1.0 | |
| // @author - | |
| // @description Yahooオクのimg右クリ禁止を削除します。削除範囲は過剰になってますが動けばいいのだ。 | |
| // @match https://page.auctions.yahoo.co.jp/jp/auction/* | |
| // @match https://auctions.yahoo.co.jp/jp/auction/* | |
| // @require https://code.jquery.com/jquery-3.6.0.slim.min.js | |
| // ==/UserScript== | |
| (function () { | |
| function improve(number) { | |
| $("body").css("-moz-user-select", "text"); | |
| $("body").css("-khtml-user-drag", "auto"); | |
| $("body").css("-webkit-user-select", "auto"); | |
| $("body").css("-ms-user-select", "text"); | |
| $("body").css("user-select", "text"); | |
| document.addEventListener("contextmenu", (e) => e.stopPropagation(), true); | |
| document.addEventListener("copy", (e) => e.stopPropagation(), true); | |
| document.addEventListener("cut", (e) => e.stopPropagation(), true); | |
| document.addEventListener("paste", (e) => e.stopPropagation(), true); | |
| document.addEventListener("selectstart", (e) => e.stopPropagation(), true); | |
| } | |
| improve(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment