去除python123复制出来的多余字符

清理python123拉的屎

目前为 2023-04-11 提交的版本。查看 最新版本

// ==UserScript==
// @name         去除python123复制出来的多余字符
// @namespace    http://tampermonkey.net/
// @version      1
// @description  清理python123拉的屎
// @author       4532
// @match        http://python123.io/student/courses/*/choices*
// @match        https://python123.io/student/courses/*/choices*
// @grant        none
// @license MIT
// ==/UserScript==

(function() {
    'use strict';
    var button = document.createElement("button");
    button.innerText = "移除复制限制";
    button.style.position = "fixed";
    button.style.top = "50%";
    button.style.width = "100px";
    //button.style.height = "50px";
    button.style.left = "80%";
    button.style.transform = "translate(-50%, -50%)";
    button.style.zIndex = "9999";
    document.body.appendChild(button);
    button.addEventListener("click", function() {
        var watermarkClass = "water-mark is-text-white";
        var elements = document.getElementsByClassName(watermarkClass);
        for (var i = 0; i < elements.length; i++) {
            var element = elements[i];
            element.innerText = "";
        }
    });
})();