tieba Big image

结果页直接显示贴吧原始大图

目前为 2015-04-19 提交的版本。查看 最新版本

// ==UserScript==
// @name           tieba Big image
// @namespace      lhydmr
// @description    结果页直接显示贴吧原始大图
// @author         轮回眼的鸣人
// @version        1.0
// @icon           http://tb.himg.baidu.com/sys/portraitn/item/0a7ec2d6bbd8d1dbb5c4c3f9c8cb5718
// @include        http://tieba.baidu.com/p/*
// @include        http://tieba.baidu.com/f?ct*
// @include        http://tieba.baidu.com/f?kz=*
// @include        http://c.tieba.baidu.com/p*
// ==/UserScript==
//去除大小限制,重定向大图
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.{6}\/sign=.*?(?=\/)/, "/pic/item");
}
//CSS限制
$('.BDE_Image').css('max-width', '100%');
$('.j_user_sign').css('max-width', '500px');
$('.j_user_sign').css('max-height', '200px');