Advertisement
Guest User

Untitled

a guest
Apr 27th, 2023
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. // ==UserScript==
  2. // @name csdn去广告提取版
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description try to take over the world!
  6. // @author csdn
  7. // @match https://*.csdn.net/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=csdn.net
  9. // @grant GM_addStyle
  10. // @run-at document-start
  11. // ==/UserScript==
  12.  
  13. //相关帖:https://www.v2ex.com/t/935884
  14.  
  15. GM_addStyle(`
  16. /* CSS代码 */
  17.  
  18. /*csdn-so.css*/
  19. .search-result-brand,
  20. .wrap-top-brand {
  21. display: none !important;
  22. }
  23.  
  24. /*csdn-edu.css*/
  25. #bottomAd {
  26. display: none;
  27. }
  28.  
  29. /*csdn-download.css*/
  30. .main .page-container.page-component .top-bar{
  31. display: none !important;
  32. }
  33.  
  34. /*csdn-www.css*/
  35. [id^='kp_box'] {
  36. display: none !important;
  37. }
  38. [id^='floor-ad'] {
  39. display: none;
  40. }
  41. #www-home-right .www-home-silde .broadcast-active,
  42. #www-home-right .www-home-silde .www-home-silde-top {
  43. display: none !important;
  44. }
  45. www-home-silde-top .ad_fullWidth,
  46. .top-banner,
  47. .hot-brand,
  48. .google-auto-placed {
  49. display: none !important;
  50. }
  51.  
  52. /*common.css*/
  53. .ins.adsbygoogle {
  54. display: none;
  55. }
  56. [id^='kp_box'] {
  57. display: none;
  58. }
  59. /* body > .csdn-reapck-select */
  60. #csdn-toolbar .toolbar-advert ,
  61. #csdn-redpack {
  62. display: none !important;
  63. }
  64.  
  65. /*csdn-blog.css*/
  66. [id^='kp_box'] {
  67. display: none;
  68. }
  69. .nodata .recommend-right[data-type='recommend'] #recommend-right > [class^='programmer'] {
  70. display: none !important;
  71. }
  72. .blog_container_aside > .box-shadow.mb8 {
  73. display: none !important;
  74. }
  75. .banner-ad-box {
  76. display: none !important;
  77. }
  78. `);
  79.  
  80.  
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement