您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
自动删除小红书页面上的navbar、推荐流以及其他信息,只留下搜索框
// ==UserScript== // @name 小红书聚焦搜索 // @homepage // @icon // @version 0.7 // @description 自动删除小红书页面上的navbar、推荐流以及其他信息,只留下搜索框 // @author geoochi // @license MIT // @grant none // @match https://www.xiaohongshu.com/explore // @namespace https://greasyfork.org/users/1262095 // ==/UserScript== function sleep(ms) { return new Promise((resolve) => setTimeout(resolve, ms)) } ;(async function () { await sleep(300) document.getElementById('mfContainer').remove() document .getElementsByClassName('mask-paper')[0] .getElementsByClassName('active router-link-exact-active')[0] .remove() document .getElementsByClassName('mask-paper')[0] .getElementsByClassName('right')[0] .remove() document.getElementsByClassName('side-bar')[0].remove() document.getElementsByClassName('bottom-menu')[0].remove() document.getElementsByClassName('input-box')[0].style.cssText = 'position: absolute; top: 30vh;' })()