游民星空文章简洁显示

游民星空新闻、攻略显示简化。

  1. // ==UserScript==
  2. // @name 游民星空文章简洁显示
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.0.3
  5. // @description 游民星空新闻、攻略显示简化。
  6. // @author fengqi
  7. // @match *://*.gamersky.com/handbook/*/*.shtml
  8. // @match *://*.gamersky.com/news/*/*.shtml
  9. // @match *://*.gamersky.com/gl/*/*.shtml
  10. // @match *://*.gamersky.com/hardware/*/*.shtml
  11. // @match *://*.gamersky.com/tech/*/*.shtml
  12. // @icon https://www.gamersky.com/favicon.ico
  13. // @grant none
  14. // @license MIT
  15. // ==/UserScript==
  16.  
  17. (function() {
  18. 'use strict';
  19.  
  20. window.onload=()=>{
  21. const classesToDelete = [
  22. 'Mid2_R',
  23. 'Mid_top',
  24. 'Top',
  25. 'QZnav',
  26. 'fixedCode',
  27. 'Bot',
  28. 'Relevant',
  29. 'Comment',
  30. 'box',
  31. 'bgAdWrap',
  32. 'gs_comm_content_bot_fun',
  33. 'gs_ccs_solve',
  34. 'supportMe',
  35. 'referencecontent',
  36. ];
  37. document.querySelectorAll(classesToDelete.map(cls => `.${cls}`).join(',')).forEach(el => el.remove());
  38. document.querySelectorAll('div.Mid2_L').forEach(el => {
  39. el.style.float = 'none';
  40. el.style.margin = '0 auto';
  41. });
  42. document.querySelectorAll('div.Mcenter').forEach(el => {
  43. el.style.padding = '0';
  44. });
  45. }
  46. })();

QingJ © 2025

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