acwing 还原周赛,去除 APP 和 创作

适用于不想用移动端APP,还想参加 acwing [残存] 周赛的用户群体

// ==UserScript==
// @name         acwing 还原周赛,去除 APP 和 创作
// @namespace    https://github.com/funcdfs
// @version      0.3
// @description  适用于不想用移动端APP,还想参加 acwing [残存] 周赛的用户群体
// @author       funcdfs
// @match        https://www.acwing.com/problem/content/*/
// @match        https://www.acwing.com/activity/content/*/
// @match        https://www.acwing.com/activity/content/punch_the_clock/*/
// @match        https://www.acwing.com/activity/content/code/content/*/
// @match        https://www.acwing.com/solution/*/
// @match        https://www.acwing.com/blog/*/
// @match		 https://www.acwing.com/community/*/
// @match		 https://www.acwing.com/*
// @exclude		   https://www.acwing.com/problem/content/submission/*/
// @exclude		   https://www.acwing.com/problem/content/discussion/*/
// @exclude		   https://www.acwing.com/problem/content/solution/*/
// @exclude		   https://www.acwing.com/problem/content/video/*/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=acwing.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    let contest = document.querySelector("#topNavBar > ul.nav.navbar-nav.navbar-right > li:nth-child(3)")
    contest.innerHTML = `<a href="https://www.acwing.com/activity/1/competition/" target="_blank">周赛</a>`;
    let androidapp = document.querySelector("#topNavBar > ul.nav.navbar-nav.navbar-right > li:nth-child(2)");
    androidapp.innerHTML = `<a href="https://www.acwing.com/file_system/file/content/whole/index/content/whole/application/1/">应用</a>`;
    let huodong = document.querySelector("#navigation_activity_active_id");
    huodong.innerHTML = `<a href="https://www.acwing.com/activity/">活动</a>`;
})();