GSCloud-Application

Help you to use GSClound-Application

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

You will need to install an extension such as Stylus to install this style.

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

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

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

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         GSCloud-Application
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Help you to use GSClound-Application
// @author       YeSihao
// @match        https://cw.ceec.net.cn/*
// @match        https://cw1.ceec.net.cn/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ceec.net.cn
// @license      GPL-3.0 License
// @grant        none
// ==/UserScript==

'use strict'


$(document).on('click', $('#title'), function () {
		let webpage_title = $("#title");
		let eyesore_text = $("#framework-toolbar-header > div.gw-header--caption > img");
		let stupid_robot = $("#NJEK_TRIGGER");
        let username = $('[class="gw-navbar-user-name name-space"]');
		const s = '\u5df2\u7ecf\u6e05\u9664\u4e11\u964b\u7684\u6587\u5b57\u548c\u667a\u969c\u4e00\u822c\u7684\u673a\u5668\u4eba\u5ba2\u670d\uff01';

        const mydomain = {'cw.ceec.net.cn': "\u4f01\u4e1a\u6570\u5b57\u5316\u4e91\u5e73\u53f0",
                          'cw1.ceec.net.cn': "\u6d6a\u6f6e\u4e1a\u8d22\u4e00\u4f53\u5316\u6d4b\u8bd5\u5e73\u53f0"}
		try {
			webpage_title.text(mydomain[document.domain]);
			eyesore_text.remove();
			stupid_robot.remove();
            username.text('');
		} catch(e) {
			alert(`The eyesore text and stupid robot has been cleaned!\n ${s}`);
		};
	});