搜狐新闻美化

try to take over the world!

  1. // ==UserScript==
  2. // @name 搜狐新闻美化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.4
  5. // @description try to take over the world!
  6. // @author AN drew
  7. // @match https://www.sohu.com
  8. // @match *://*.sohu.com/*
  9. // @grant GM_addStyle
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. GM_addStyle(`
  16. .god_header.clearfix.area{display:none!important}
  17. .god-wrapper.area.god-main.clearfix{display:none!important}
  18. .godR{display:none; visibility:hidden; position:absolute; top:-1000px;}
  19. .god-wrapper.area.clearfix{display:none!important}
  20. .god-main.god-main-top{display:none!important}
  21. .extend-mod.bordR{display:none!important}
  22. .god-cut{display:none; visibility:hidden; position:absolute; top:-1000px;}
  23. .god-main{display:none; visibility:hidden; position:absolute; top:-1000px;}
  24. #left-bottom-ad{display:none!important}
  25. #right-side-bar{display:none!important}
  26. .groom-read{display:none!important}
  27. #articleAllsee{display:none; visibility:hidden; position:absolute; top:-1000px;}
  28. #god_bottom_banner{display:none; visibility:hidden; position:absolute; top:-1000px;}
  29. .news-box.clear.news-box-thr{display:none!important}
  30. #beans_15318{display:none!important}
  31. .ad-rect{display:none!important}
  32. .ad-feed-item{display:none!important}
  33. #left-bottom-god{display:none!important}
  34. .myBaiduAd{display:none!important}
  35. .channel-top{display:none; visibility:hidden; position:absolute; top:-1000px;}
  36. .ad_top{display:none!important}
  37. .area.adbox{display:none; visibility:hidden; position:absolute; top:-1000px;}
  38. div[id*=feed-ad]{display:none; visibility:hidden; position:absolute; top:-1000px;}
  39. div[id*=div-xps-ad]{display:none; visibility:hidden; position:absolute; top:-1000px;}
  40. #pic_container{display:none; visibility:hidden; position:absolute; top:-1000px;}
  41. .article-page #article-container .main{width: 840px!important}
  42. #videoRecContent{display:none!important}
  43. #videoHotListContent{display:none!important}
  44. #main-header.hide{display:none!important}
  45. .article-video-page .main-content #sohuplayer{width: auto!important}
  46. .mptcfe-player .mptcfe-player__control .progress-bar .progress-bar__line {height: 8px!important}
  47. .mptcfe-player .mptcfe-player__control .progress-bar:hover .progress-bar__line {height: 8px!important}
  48. .mptcfe-player .mptcfe-player__control .control-volume-btn .volume-line{width: 5px!important}
  49. .mptcfe-player .mptcfe-player__control .control-volume-btn .volume-line__ing{width: 5px!important}
  50. .mptcfe-player .mptcfe-player__control .control-volume-btn .volume-line__ball{width: 8px!important; height: 8px!important}
  51. `)
  52.  
  53. setInterval(function(){
  54. if($('.mptcfe-player').hasClass('mptcfe-player__full-mode'))
  55. {
  56. $('#main-header').addClass('hide');
  57. }
  58. else
  59. {
  60. $('#main-header').removeClass('hide');
  61. }
  62. },500)
  63. })();