您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Позволяет свернуть список закреплённых тем в разделе
当前为
// ==UserScript== // @name LZTHideStickyThreads // @namespace MeloniuM/LZT // @version 0.1 // @description Позволяет свернуть список закреплённых тем в разделе // @author MeloniuM // @license MIT // @match https://zelenka.guru/* // @icon https://www.google.com/s2/favicons?sz=64&domain=zelenka.guru // @grant none // ==/UserScript== (function() { 'use strict'; if ($('.discussionListItems .stickyThreads .discussionListItem')){ let button = document.createElement('a'); button.className = 'button middle hideStickyThreads'; button.style.width = '100%' button.innerText = 'Свернуть закрепленные темы' $('.discussionListItems').prepend(button); $(button).on('click', function(e){ if ($('.discussionListItems .stickyThreads .discussionListItem').is(':hidden')){ $('.discussionListItems .stickyThreads .discussionListItem').slideDown('normal') $('.hideStickyThreads').text('Свернуть закреплённые темы'); }else{ $('.discussionListItems .stickyThreads .discussionListItem').slideUp('normal') $('.hideStickyThreads').text('Раскрыть закреплённые темы'); } }); } })();