Copy Paste Bypasser

The userscript helps you to bypass the copy paste block until you solve the quiz.

当前为 2017-01-12 提交的版本,查看 最新版本

// ==UserScript==
// @name         Copy Paste Bypasser
// @namespace    Copy Paste Bypasser
// @version      1.0.1
// @copyright    2017+, Pakdefndr
// @description  The userscript helps you to bypass the copy paste block until you solve the quiz.
// @author       Pak Defndr
// @include      http://quiz.vu.edu.pk/QuizQuestion.aspx*
// @grant        none
// ==/UserScript==

(function() {
    document.getElementsByTagName("body")[0].setAttribute("oncopy", "return true");
    document.getElementsByTagName("body")[0].setAttribute("oncut", "return true");
    document.getElementsByTagName("body")[0].setAttribute("onpaste", "return true");
    var elmLink = document.getElementById('txtQuestion');
    elmLink.removeAttribute('readonly');
    elmLink.removeAttribute('disabled');
    var elmLink1 = document.getElementById('lblAnswer0');
    elmLink1.removeAttribute('readonly');
    elmLink1.removeAttribute('disabled');
    var elmLink2 = document.getElementById('lblAnswer1');
    elmLink2.removeAttribute('readonly');
    elmLink2.removeAttribute('disabled');
    var elmLink3 = document.getElementById('lblAnswer2');
    elmLink3.removeAttribute('readonly');
    elmLink3.removeAttribute('disabled');
    var elmLink4 = document.getElementById('lblAnswer3');
    elmLink4.removeAttribute('readonly');
    elmLink4.removeAttribute('disabled');
    var elmLink5 = document.getElementById('lblAnswer4');
    elmLink5.removeAttribute('readonly');
    elmLink5.removeAttribute('disabled');
    addJS_Node (myFunction);
    function body() {
    $(document).ready(function () {
            $("body").bind("contextmenu", function () {
                return ture;
            });
        });
         $(document).keydown(function (e) {
            
        });
    }
     addJS_Node (body);
    function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
        var D = document;
        var scriptNode = D.createElement ('script');
        if (runOnLoad) {
            scriptNode.addEventListener ("load", runOnLoad, false);
        }
        scriptNode.type = "text/javascript";
        if (text)scriptNode.textContent = text;
        if (s_URL)scriptNode.src = s_URL;
        if (funcToRun)scriptNode.textContent  = '(' + funcToRun.toString() + ')()';

        var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
        targ.appendChild (scriptNode);
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址