Skip to content

Instantly share code, notes, and snippets.

@slimymars
Last active June 13, 2025 01:33
Show Gist options
  • Save slimymars/66e2318a559b79272ad7f51ec45c3c8b to your computer and use it in GitHub Desktop.
Save slimymars/66e2318a559b79272ad7f51ec45c3c8b to your computer and use it in GitHub Desktop.
Yahooオークション右クリ禁止削除
// ==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