您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
cnbeta网站显示精简列表,去掉摘要
// ==UserScript== // @name cnbeta显示精简列表 // @namespace http://tampermonkey.net/ // @version 0.5 // @description cnbeta网站显示精简列表,去掉摘要 // @author You // @match https://www.cnbeta.com/ // @grant none // @license L.J.B // ==/UserScript== (function() { 'use strict'; const targetNode = $('.items-area').get(0); // Options for the observer (which mutations to observe) const config = { attributes: true, childList: true, subtree: true }; // Callback function to execute when mutations are observed const callback = function(mutationsList, observer) { // Use traditional 'for loops' for IE 11 for(const mutation of mutationsList) { if (mutation.type === 'childList') { $("dl >a").hide(); $("div dl dd").remove(); $("div .meta-data").remove(); $("div dl").css('padding-left','50px'); $("div dl").css('background','none'); $(".cnbeta-update-list .item").css("padding-top","0px"); $(".item").css("height","45px"); $(".cnbeta-update-list-article").hide(); $(".item.cooperation").hide(); $(".baidu_dropdown_box").hide(); $(".cnbeta-update-list .item").css("background","none"); } else if (mutation.type === 'attributes') { $(".item").css("height","45px"); } } }; // Create an observer instance linked to the callback function const observer = new MutationObserver(callback); // Start observing the target node for configured mutations observer.observe(targetNode, config); // Your code here... })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址