您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
结果页直接显示贴吧原始大图
当前为
// ==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');