您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Block the right click and mouse select blockers.
您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
- // ==UserScript==
- // @name "Right Click Block" and "Select Block" Blocker
- // @version 0.1
- // @description Block the right click and mouse select blockers.
- // @author ekin@gmx.us
- // @include http://*/*
- // @include https://*/*
- // @grant none
- // @namespace https://greatest.deepsurf.us/users/6473
- // ==/UserScript==
- window.onload = function() {
- document.oncontextmenu=true;
- if(jQuery) {
- jQuery(document).unbind('contextmenu');
- }
- var css = "html, body {\
- -webkit-touch-callout: all !important;\
- -webkit-user-select: all !important;\
- -khtml-user-select: all !important;\
- -moz-user-select: all !important;\
- -ms-user-select: all !important;\
- user-select: all !important;\
- }";
- var head = document.head || document.getElementsByTagName('head')[0];
- var style = document.createElement('style');
- style.type = 'text/css';
- if (style.styleSheet){
- style.styleSheet.cssText = css;
- } else {
- style.appendChild(document.createTextNode(css));
- }
- head.appendChild(style);
- };