NGA ++

NGA 显示所有头像,屏蔽广告

  1. // ==UserScript==
  2. // @name NGA ++
  3. // @namespace shfeat
  4. // @author shfeat
  5. // @version 0.1.1
  6. // @description NGA 显示所有头像,屏蔽广告
  7. // @include http*://bbs.nga.cn/*
  8. // @include http*://nga.178.com/*
  9. // @include http*://ngabbs.com/*
  10. // @grant GM_xmlhttpRequest
  11. // @grant GM_getResourceText
  12. // @grant GM_getValue
  13. // @grant GM_setValue
  14. // @grant GM_download
  15. // @grant GM_addStyle
  16. // @require http://libs.baidu.com/jquery/2.1.3/jquery.min.js
  17. // @homepageURL https://gf.qytechs.cn/zh-CN/scripts/386552-nga
  18. // @run-at document-end
  19. // ==/UserScript==
  20.  
  21. (function() {
  22. $(document).ready(function() {
  23. if(/adpage_insert/.test(window.location.href))
  24. getJump();
  25.  
  26. $("#m_posts_c > table.postbox").each(function(i, el){
  27. var uid = $(el).find("a[name=uid]").text();
  28. if(uid && commonui.userInfo.users[uid].avatar) {
  29. var avatar_type = typeof(commonui.userInfo.users[uid].avatar);
  30. $(el).find('span.posterinfo > img').remove();
  31. if(avatar_type == 'object') {
  32. for(i in commonui.userInfo.users[uid].avatar) {
  33. if(/^http/.test(commonui.userInfo.users[uid].avatar[i])) {
  34. $(el).find("a[name=uid]").parent().after('<img src="'+commonui.userInfo.users[uid].avatar[i]+'" style="max-width:180px;max-height:255px" class="avatar">');
  35. }
  36. }
  37. } else if(avatar_type == 'string') {
  38. $(el).find("a[name=uid]").parent().after('<img src="'+commonui.userInfo.users[uid].avatar+'" style="max-width:180px;max-height:255px" class="avatar">');
  39. }
  40. }
  41. });
  42.  
  43. $('#post1strow0 td.null').remove();
  44. $('#m_posts_c > span:eq(0)').remove();
  45. $('#fast_post_c tr.row1 td.c2:eq(1)').remove();
  46. $('#posterinfo0').css('min-height', '200px');
  47. $('.forumbox .postrow h3').css('font-size', '1.37em');
  48.  
  49. //__COOKIE.setMiscCookieInSecond('pv_count_for_insad', 0);
  50. });
  51. })();

QingJ © 2025

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