tieba Big image

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

目前为 2016-07-14 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name tieba Big image
  3. // @namespace lhydmr
  4. // @description 贴吧内容页无需点击直接显示原始大图
  5. // @author 轮回眼的鸣人
  6. // @version 1.5
  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>*,.left_section,.thread_theme_7,.l_post_bright,.core_reply_wrapper,.edui-container,.lzl_panel_wrapper,.edui-editor-middle {width: 100% !important;}\
  15. .left_section {float: none !important;}\
  16. .d_post_content_main {width: calc(100% - 150px) !important;}\
  17. #tb_nav,.core_title_wrap_bright,.l_post_bright {border-left: 1px solid #e1e4e6 !important; border-right: 1px solid #e1e4e6 !important;}\
  18. .tb_rich_poster {width: 720px !important; margin: 0 auto !important;}\
  19. .editor_bottom_panel {margin: 0 !important;}\
  20. #j_editor_for_container{width: auto !important;}\
  21. .BDE_Image {max-width: 100% !important;}\
  22. .left_section {-webkit-flex:1 !important;flex:1 !important;}\
  23. #pb_content{display: flex !important;background: none !important;}\
  24. #j_core_title_wrap{width: 100% !important;}\
  25. #j_core_title_wrap.tbui_follow_fixed {width: 1180px !important;}\
  26. .post_bubble_middle {width: auto !important; background: none !important; padding: 0 !important;}\
  27. .post_bubble_top,.post_bubble_bottom {display: none !important;}\
  28. ");
  29. //去除大小限制,重定向大图
  30. for (var i = 0; i < document.images.length; i++) {
  31. var image = document.images[i];
  32. image.removeAttribute('width');
  33. image.removeAttribute('height');
  34. image.src = image.src.replace(/\/w.*\/sign=.*?(?=\/)/, "/pic/item");
  35. }
  36. //签名档尺寸限制
  37. GM_addStyle(".j_user_sign {max-width: 500px !important; max-height: 200px !important;}");