去除知乎下拉推荐

try to take over the world!

  1. // ==UserScript==
  2. // @name 去除知乎下拉推荐
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author You
  7. // @match https://www.zhihu.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13.  
  14. // Your code here...
  15.  
  16. // Your CSS as text
  17. var styles = `
  18. .AutoComplete-menu.SearchBar-menu.SearchBar-noValueMenu
  19. > .AutoComplete-group:first-child {
  20. display: none;
  21. }
  22. `
  23.  
  24. var styleSheet = document.createElement("style")
  25. styleSheet.type = "text/css"
  26. styleSheet.innerText = styles
  27. document.head.appendChild(styleSheet)
  28.  
  29.  
  30. // setTimeout(() => {
  31. // let l = document.body.children
  32. // let lastItem = l[l.length - 1]
  33. // //l[l.length - 1].remove()
  34. // console.log(lastItem)
  35.  
  36. // setInterval(() => {
  37. // console.log(lastItem.innerHTML)
  38. // }, 3000)
  39. // }, 3000)
  40.  
  41. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址