GreenStemstar

try to take kids off games!

目前為 2022-10-27 提交的版本,檢視 最新版本

// ==UserScript==
// @name         GreenStemstar
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take kids off games!
// @author       younglet
// @match        https://code.stemstar.com/*
// @license MIT
// @require      https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.2.1/jquery.min.js
// @icon         https://www.google.com/s2/favicons?sz=64&domain=stemstar.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    $(`a[href="/discovery/project"]`).parent().remove()

    var mainBody = $(`#app > section > main`)
    var btn = $(`#app > section > main > div > div > div.excellence > div.content > div.ex-right > div.ex-more > button`)

    $(`#app > section > main > div`).css( 'margin','20px')
    btn.css( 'margin','60px')


    function handle(){

    console.log(document.location.href)
        $(`a[href="/discovery/project"]`).parent().remove()
        if(document.location.href  == 'https://code.stemstar.com/'){
        console.log('hello')
            $(`a[href="/discovery/project"]`).remove()
            $(`a[href="/discovery/project"]`).parent().remove()
            $(`#app > section > main > div > div > div:nth-child(2)`).remove()
            console.log()
            if($(`#app > section > main > div > div`).children().length >=3 ){
                $(`#app > section > main > div > div > div:nth-child(2)`).remove()
                $(`#app > section > main > div > div`).append(btn)
            }

        }
        if(document.location.href  == 'https://code.stemstar.com/discovery/project'){
        console.log('hello')
            $(`#app > section > main > div`).remove()

        }
    }

    setInterval(handle,10)



})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址