// ==UserScript== // @name byrbt趣味盒图片放大v2 // @version 1.2.2 // @author camedeus,tiger // @description 放大byrbt主页和历史趣味盒图片,基于byr社区的原始版本进行修改,支持更换域名后的byr和新版主页地址,添加了开源协议. // @icon https://bt.byr.cn/favicon.ico // @match *://bt.byr.cn/* // @match *://byr.pt/* // @grant none // @namespace https://gist.github.com/Devil-Z/1c68b4eee9b28164dbad64c8890ca089 // @license Apache Licence 2.0 // @downloadURL none // ==/UserScript== 'use strict'; /* * * 简易参数设定 * * */ window.addEventListener('load', function() { var path = location.pathname; if(path.match("index.php")||path==="/"){ var e = document.querySelector("iframe[src='fun.php?action=view']") var a = e.contentDocument.querySelectorAll('.shoutrow')[1].querySelectorAll('img') e.height=600 // a = e.contentquerySelectorAll('.shoutrow')[1].querySelector('img') for(var i=0;i