计蒜客助手

[计蒜客]

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         计蒜客助手
// @namespace    http://tampermonkey.net/
// @homepage     https://gist.github.com/inkedawn/12b82ba385666853a00c3725d6c04d27
// @version      0.2.0
// @description  [计蒜客]
// @description  [jisuanke]
// @author       inkedawn
// @license      MIT
// @date         22/01/2019
// @modified     22/01/2019
// @match        http://www.jisuanke.com/course/*
// @match        https://www.jisuanke.com/course/*
// @run-at       document-end

// ==/UserScript==

(function() {
    'use strict';
    function removeLimit(selector) {
        document.querySelectorAll(selector).forEach(function(elem) {
            elem.onselect = '';
            elem.oncut = '';
            elem.oncopy = '';
            elem.oncut = '';
        });
    }
    var fsbtn =document.querySelector('#full-screen');
    if (fsbtn) {
        fsbtn.click();
    }
    removeLimit('.hint-content');
    removeLimit('.guide-content');
    removeLimit('.read-text');
    removeLimit('.options-content');

})();