tieba Big image

贴吧内容页无需点击直接显示原始大图

  1. // ==UserScript==
  2. // @name tieba Big image
  3. // @namespace lhydmr
  4. // @description 贴吧内容页无需点击直接显示原始大图
  5. // @author 轮回眼的鸣人
  6. // @version 1.8
  7. // @grant GM_addStyle
  8. // @icon http://tb.himg.baidu.com/sys/portraitn/item/0a7ec2d6bbd8d1dbb5c4c3f9c8cb5718
  9. // @include /https?:\/\/[a-z]+?\.baidu\.com/(p\/|f.ct|f.kz=).*/
  10. // ==/UserScript==
  11. // 宽屏样式
  12. GM_addStyle("\
  13. .l_container{width: 1180px !important;}\
  14. .content,.content>*,.thread_theme_7,.l_post_bright,.core_reply_wrapper,.edui-container,.lzl_panel_wrapper,.edui-editor-middle {width: 100% !important;}\
  15. .d_post_content_main {width: calc(100% - 150px) !important;}\
  16. #tb_nav,.core_title_wrap_bright,.l_post_bright {border-left: 1px solid #e1e4e6 !important; border-right: 1px solid #e1e4e6 !important;}\
  17. .tb_rich_poster {width: 720px !important; margin: 0 auto !important;}\
  18. .editor_bottom_panel {margin: 0 !important;}\
  19. #j_editor_for_container{width: auto !important;}\
  20. .BDE_Image {max-width: 100% !important;}\
  21. .replace_div{height: auto !important;width: 100% !important;}\
  22. .replace_tip {display: none !important;}\
  23. .left_section {-webkit-flex:1 0 auto !important;flex:1 0 auto !important;}\
  24. #pb_content{display: flex !important;background: none !important;}\
  25. #j_core_title_wrap{width: 100% !important;}\
  26. #j_core_title_wrap.tbui_follow_fixed {width: 1180px !important;}\
  27. .post_bubble_middle {width: auto !important; background: none !important; padding: 0 !important;}\
  28. .post_bubble_top,.post_bubble_bottom {display: none !important;}\
  29. ");
  30. //去除大小限制,重定向大图
  31. for (var i = 0; i < document.images.length; i++) {
  32. var image = document.images[i];
  33. image.removeAttribute('width');
  34. image.removeAttribute('height');
  35. image.src = image.src.replace(/\/w.*\/sign=.*?(?=\/)/, "/pic/item");
  36. image.setAttribute('herf')
  37. image.herf = image.src;
  38. }
  39. //签名档尺寸限制
  40. GM_addStyle(".j_user_sign {max-width: 500px !important; max-height: 200px !important;}");

QingJ © 2025

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