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.2
// @copyright    2017+, Pakdefndr
// @description  The userscript helps you to bypass the copy paste block until you solve the quiz.
// @author       Pak Defndr
// @include      http://localhost/Quiz/*
// @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");
    document.getElementsByTagName("body")[0].setAttribute("onkeypress", "");
    document.getElementsByTagName("body")[0].setAttribute("onkeydown", "");
    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');
   document.onkeydown = null;
})();

QingJ © 2025

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