"Right Click Block" and "Select Block" Blocker

Block the right click and mouse select blockers.

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         "Right Click Block" and "Select Block" Blocker
// @version      0.1
// @description  Block the right click and mouse select blockers.
// @author       [email protected]
// @include      http://*/*
// @include      https://*/*
// @grant        none
// @namespace 	 https://greasyfork.org/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);
   
};