您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Removes unlock solution buttons and AD under the kata description
// ==UserScript== // @name Codewars helper // @author Murka // @description Removes unlock solution buttons and AD under the kata description // @icon https://i.imgur.com/LKAcLYO.png // @version 0.1 // @match *://www.codewars.com/* // @run-at document-end // @grant none // @license MIT // @namespace https://gf.zukizuki.org/users/919633 // ==/UserScript== /* jshint esversion:6 */ /* Author: Murka Github: https://github.com/Murka007 Discord: https://discord.gg/sG9cyfGPj5 Greasyfork: https://gf.zukizuki.org/en/users/919633 */ (function() { "use strict"; // Removes unlock solution button, right under sample tests const HIDE_SOLUTION_TRAIN = true; // Removes unlock solution button in the kata preview const HIDE_SOLUTION_PREVIEW = false; // Removes AD banner under kata description const HIDE_DESCRIPTION_BANNER = true; const styles = []; if (HIDE_SOLUTION_TRAIN) { styles.push(` #view_solutions, #surrender_btn { display: none!important; } `) } if (HIDE_SOLUTION_PREVIEW) { styles.push(` .w-full.mt-2:not(.clear-both) > * > ul.flex.flex-row.justify-center.items-center.space-x-2.px-0.border-0.h-10 > li:nth-child(2) { display: none!important; } `) } if (HIDE_DESCRIPTION_BANNER) { styles.push(` .description.h-full { height: auto!important; } .description.h-full > .description-footer { display: none!important; } `) } const style = document.createElement("style"); style.innerHTML = styles.join("\n"); document.head.appendChild(style); })();