Greasy Fork is available in English.

去你妈的秒懂

去除百度系网站的秒懂百科/视频,目前支持百度百科、百度知道

Installa questo script?
Script suggerito dall'autore

Potresti essere interessato/a anche a Wanta

Installa questo script
  1. // ==UserScript==
  2. // @name 去你妈的秒懂
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2.5
  5. // @license gpl-3.0
  6. // @description 去除百度系网站的秒懂百科/视频,目前支持百度百科、百度知道
  7. // @author PRO
  8. // @match https://baike.baidu.com/*
  9. // @match https://jingyan.baidu.com/*
  10. // @icon https://www.baidu.com/favicon.ico
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. const log = (...args) => console.log("[去你妈的秒懂]", ...args);
  17. const config = { // 添加域名-selector的映射来适配更多网站
  18. "baike.baidu.com": ['.second-wrapper', '.full-screen-second_prestrain', '[class*="contentBottom_"]', '#J-lemma-video-list'],
  19. "jingyan.baidu.com": ['.feeds-video-box', '.feeds-video-one-view', '.video-wrapper']
  20. }
  21. const names = config[window.location.host];
  22. if (names) {
  23. names.forEach((name) => {
  24. const sb = document.querySelector(name);
  25. if (sb) {
  26. sb.remove();
  27. log(`${name} 元素移除成功!`);
  28. } else {
  29. log(`未发现 ${name} 元素!`);
  30. }
  31. });
  32. }
  33. else {
  34. log('暂不支持此站点,请提交适配反馈!');
  35. };
  36. })();