东方资讯等美化

东方资讯、东方影视大全、头条视频、头条图片、东方养生等美化

  1. // ==UserScript==
  2. // @name 东方资讯等美化
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description 东方资讯、东方影视大全、头条视频、头条图片、东方养生等美化
  6. // @author AN drew
  7. // @match *://mini.eastday.com/*
  8. // @match *://kan.eastday.com/*
  9. // @match *://video.eastday.com/*
  10. // @match *://miniimg.eastday.com/*
  11. // @match *://yangsheng.eastday.com/*
  12. // @exclude http://mini.eastday.com/
  13. // @exclude https://mini.eastday.com/
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19.  
  20. if(window.location.href.indexOf("https")==-1)
  21. $(".section").attr("style","padding-top:48px;");
  22. else
  23. $(".gg_cnt_detail").attr("style","height:0px;");
  24.  
  25. if(window.location.href.indexOf("kan.eastday.com/play") > -1)
  26. $("html").css({"overflow":"hidden"})
  27.  
  28. $(".recommend").attr("style","display:none");
  29. $(".aside").attr("style","display:none");
  30. $(".bottom_over_cnt").attr("style","display:none");
  31. $(".J-bdsharebuttonbox-wrap").attr("style","display:none");
  32. $(".pagination").attr("style","visibility:hidden");
  33.  
  34. if(window.location.href.indexOf("http://kan.eastday.com/shortvideo") == -1)
  35. $(".main_content").attr("style","display:flex;justify-content:center;align-items:center;");
  36.  
  37. $(".main-labie").hide()
  38. $("#toolbar").attr("style","position:relative; left:-20px;");
  39. $(".articlepage").attr("style","position:relative; left:-20px;");
  40. $("#ny_xypxf").hide()
  41. $("#first-img-down").hide()
  42. $("#toolbar").attr("style","margin-left:620px");
  43.  
  44. $(".index_b").attr("style","display:none");
  45. $("#sy_tbrb").attr("style","display:none");
  46. $("body > div.con_index > div:nth-child(2)").attr("style","display:none");
  47. $("#index_dy_bottom").attr("style","display:none");
  48. $(".index_ad").attr("style","display:none");
  49. $(".detail_fixed_gg").attr("style","display:none");
  50. $("#error_bottom").attr("style","display:none");
  51. $(".ad36_dbgg").attr("style","display:none");
  52. $(".left_list").attr("style","display:none");
  53. $(".i_des_ad").attr("style","display:none");
  54. $(".i_ad").attr("style","display:none");
  55. $(".p_right").attr("style","display:none");
  56. $(".gg").attr("style","display:none");
  57. $("#detail_ad2").attr("style","display:none");
  58. $(".left_bottom").attr("style","display:none");
  59. $(".cnxh_con").attr("style","display:none");
  60. $(".dbdcp_cb").attr("style","display:none");
  61. $("#wrap > div:nth-child(3) > div > div > div.p_left > div > div > div > div.g_title.clearfix").attr("style","display:none");
  62. $("#wrap > div:nth-child(3) > div > div > div.p_left > div > div > div > div.guess_like > div.g_title.clearfix").attr("style","display:none");
  63. $(".rmbq_con.rmbq").attr("style","display:none");
  64. $("#yxxf_area").hide()
  65. setInterval(function(){
  66. var $topmec = $(".topmec").clone()
  67. $topmec.css("display","block")
  68. $(".topmec").remove()
  69. $topmec.prependTo(".layout-main")
  70. $topmec.css({"all":"initial"})
  71. $topmec.css({"width": "100%",
  72. "height": "40px",
  73. "color": "#E5E5E5",
  74. "z-index": "99",
  75. "line-height": "40px",
  76. "overflow": "hidden"})
  77.  
  78. $topmec.find(".curTitle").css({"float": "left",
  79. "font-size": "20px",
  80. "margin-left": "20px",
  81. "height": "42px",
  82. "overflow": "hidden",
  83. "position": "relative"})
  84.  
  85. $topmec.find(".scroll").css({"position": "absolute",
  86. "font-size": "18px",
  87. "color": "#333",
  88. "font-weight": "700"})
  89.  
  90. $topmec.find(".tousu").css({"float": "right",
  91. "font-size": "12px",
  92. "margin-right": "12px"})
  93. },1)
  94.  
  95.  
  96. $(".left-c").css({"margin-top":"10px","margin-bottom":"10px"})
  97. $("#sy_tbrb").hide()
  98.  
  99.  
  100. if(window.location.href.indexOf("yangsheng.eastday.com") == -1)
  101. {
  102. $(".content").attr("style","display:flex;justify-content:center;align-items:center;");
  103. }
  104. else
  105. {
  106. $(".side-left-up").css({"width":"1000px"})
  107. }
  108.  
  109. console.log($(".page").children().eq(-2).get(0))
  110. var $last=$(".page").children().eq(-3)
  111. var $fake=$(".page").children().eq(-2)
  112. var $next=$(".page").children().eq(-1)
  113.  
  114. $fake.hide()
  115.  
  116. if($last.hasClass("cur"))
  117. {
  118. $next.css({"background-color":"#ddd","cursor":"default"})
  119. $next.attr({"href":"javascript:alert('已到最后一页')","target":"_self"})
  120. }
  121.  
  122. if(window.location.href.indexOf("miniimg.eastday.com") == -1)
  123. $(".main").attr("style","display:flex;justify-content:center;align-items:center;");
  124.  
  125. $(".layout_xxtj").attr("style","display:none");
  126. $(".hot_recommend").attr("style","display:none");
  127. $(".rightCon").attr("style","display:none");
  128.  
  129. $(".dsp_yxxf").hide()
  130. $(".side-right").hide()
  131. $("#yxxf").hide()
  132. $("#right-module").hide()
  133. $(".bui-left.single-mode").hide()
  134. $(".screen_bottom").hide()
  135. $("#ad_bottom_right").hide()
  136. $(".dy_ad_line").hide()
  137. $("iframe").hide()
  138. $(".detail_p2").hide()
  139. $(".scroll-wrap.detail-scroll-wrap").hide()
  140. $(".scroll-wrap.topic-scroll-wrap").hide()
  141. $(".main .left").css({"margin-top":"80px","margin-left":"10%","width":"100%","height":"500px"})
  142.  
  143.  
  144. setInterval(function(){
  145. $(".barrage").hide()
  146. $(".ad-container").hide()
  147. $(".right").remove()
  148. $(".xin_dsp").hide()
  149. $(".Toreplay").hide()
  150. $(".ad_dsp").hide()
  151. $(".zt_l_ad").hide()
  152. $("[class*='degg']").hide()
  153. $(".ad-left").hide()
  154. $("#foot_right_fixed").hide()
  155. $("[id*='list_top_ad']").hide()
  156. $("[id*='BAIDU_DUP']").hide()
  157. $("[id*='BAIDU_SSP']").hide()
  158. $(".dy_s_advert").parent().hide()
  159. $(".g_div").hide()
  160. $(".bottom_gad").hide()
  161. $(".ad_left").hide()
  162. $(".ad36_dbdcp").hide()
  163. },1)
  164.  
  165.  
  166. // Your code here...
  167. })();

QingJ © 2025

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