Greasy Fork is available in English.

xuetangx-remove-qrcode

移除学堂在线课程的强制微信扫码关注

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         xuetangx-remove-qrcode
// @namespace    https://github.com/DuckSoft
// @version      0.2.1
// @description  移除学堂在线课程的强制微信扫码关注
// @author       DuckSoft
// @match        *://www.xuetangx.com/courses/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // 移除遮罩层方法
    let remove_fun = () => {
        let mask;
        if (mask = document.querySelector(".course_mask")) {
            mask.remove()
        }
    };
    // 绑定窗口加载完毕事件
    (f => {
        if (document.addEventListener) window.addEventListener("load", f, false);
        else if (window.attachEvent) window.attachEvent("onload", f);
    })(remove_fun);
    // 双击页面立即移除(适用于网络加载缓慢时)
    (f => window.addEventListener("dblclick", f, false))(remove_fun);
})();