Greasy Fork

Greasy Fork is available in English.

tieba Big image

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

当前为 2016-07-09 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           tieba Big image
// @namespace      lhydmr
// @description    贴吧内容页无需点击直接显示原始大图
// @author         轮回眼的鸣人
// @version        1.4
// @grant          GM_addStyle
// @icon           http://tb.himg.baidu.com/sys/portraitn/item/0a7ec2d6bbd8d1dbb5c4c3f9c8cb5718
// @include        /https?:\/\/[a-z]+?\.baidu\.com/(p\/|f.ct|f.kz=).*/
// ==/UserScript==
// 宽屏样式
GM_addStyle("\
  .l_container{width: 1180px !important;}\
  .content,.content>*,.left_section,.thread_theme_7,.l_post_bright,.core_reply_wrapper,.edui-container,.lzl_panel_wrapper,.edui-editor-middle {width: 100% !important;}\
  .left_section {float: none !important;}\
  .d_post_content_main {width: calc(100% - 150px) !important;}\
  #tb_nav,.core_title_wrap_bright,.l_post_bright {border-left: 1px solid #e1e4e6 !important; border-right: 1px solid #e1e4e6 !important;}\
  .tb_rich_poster {width: 720px !important; margin: 0 auto !important;}\
  .editor_bottom_panel {margin: 0 !important;}\
  #j_editor_for_container{width: auto !important;}\
  .BDE_Image {max-width: 100% !important;}\
  .left_section {-webkit-flex:1 !important;flex:1 !important;}\
  #pb_content{display: flex !important;background: none !important;}\
  #j_core_title_wrap{width: 100% !important;}\
  #j_core_title_wrap.tbui_follow_fixed {width: 1180px  !important;}\
  .post_bubble_middle {width: auto !important; background: none !important; padding: 0 !important;}\
  .post_bubble_top,.post_bubble_bottom {display: none !important;}\
  .p_content_guessing_watermark {padding: 0 !important;}\
  ");
//去除大小限制,重定向大图
for (var i = 0; i < document.images.length; i++) {
  var image = document.images[i];
  image.removeAttribute('width');
  image.removeAttribute('height');
  image.src = image.src.replace(/\/w.*\/sign=.*?(?=\/)/, "/pic/item");
}
//签名档尺寸限制
GM_addStyle(".j_user_sign {max-width: 500px !important; max-height: 200px !important;}");