Last active
April 27, 2023 18:04
-
-
Save takuya/f82b6ad73af01d403bb4 to your computer and use it in GitHub Desktop.
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 銀行の右クリック対策、対策 | |
// @match https://*.jibunbank.co.jp/* | |
// @match https://*.shinseibank.com/* | |
// ==/UserScript== | |
document.body.appendChild(function(){ | |
sc = document.createElement("script"); | |
var code = function(){ | |
//右クリック対策 | |
document.oncontextmenu=null; | |
document.onmousedown=null; | |
document.onmouseup=null; | |
document.onkeydown=null; | |
//じぶん銀行対策 | |
if(fireTimeOut){ | |
fireTimeOut = function(){} | |
window.clearTimeout(temp_timer); | |
} | |
// | |
} | |
src = "("+code.toString()+")()" | |
sc.type="text/javascript"; | |
sc.text=src | |
return sc; | |
}() | |
); | |
タイムアウトが早すぎるのは、構わないんだけど、どのページ見てたかわからなくなるのはかんべんして欲しい。
なので、タイムアウトでページ遷移するのを防ぎたくて、タイムアウトを無効化するようにした。
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mouseup も監視されてたので追加した