您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Make Duolingo wider and more minimalist.
当前为
// ==UserScript== // @name Duolingo Wide // @namespace http://tampermonkey.net/ // @version 1.2 // @description Make Duolingo wider and more minimalist. // @author Nekosuki // @match https://www.duolingo.com/* // @grant none // ==/UserScript== (function() { 'use strict'; let css = document.createElement("style"); css.innerText = "div.a5SW0,div._2_lzu{display:none}div._3MT-S{width:100%}div.kHldG{width:20%}"; document.head.appendChild(css); let replaceLingotButton = function() { let c = document.querySelector("div.mAsUf"); if(c.firstElementChild.dataset.test != "lingot-store-button") return; let a = document.querySelector("div._21w25 > a"); a.className = "_3LN9C _3QG2_ _1vaUe _3IS_q _1XnsG _1vaUe _3IS_q"; c.replaceChild(a, c.firstElementChild); }; new MutationObserver(replaceLingotButton).observe(document, {childList: true, subtree: true}); replaceLingotButton(); })();