Skip to content

Instantly share code, notes, and snippets.

@takuya
Last active April 27, 2023 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takuya/f82b6ad73af01d403bb4 to your computer and use it in GitHub Desktop.
Save takuya/f82b6ad73af01d403bb4 to your computer and use it in GitHub Desktop.
// ==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;
}()
);
@takuya
Copy link
Author

takuya commented Feb 27, 2015

mouseup も監視されてたので追加した

@takuya
Copy link
Author

takuya commented Feb 27, 2015

タイムアウトが早すぎるのは、構わないんだけど、どのページ見てたかわからなくなるのはかんべんして欲しい。

なので、タイムアウトでページ遷移するのを防ぎたくて、タイムアウトを無効化するようにした。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment