您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
read blog.sina.com.cn with full width image
// ==UserScript== // @name 新浪博客显示全宽原图 // @version 0.3 // @namespace https://github.com/fangj // @description read blog.sina.com.cn with full width image // @author fangj // @match https://blog.sina.com.cn/* // @grant none // @license MIT // ==/UserScript== (function () { 'use strict'; function enlargeimage() { console.log("sina ad remove work!") document.addEventListener('DOMSubtreeModified', function (event) { try { let ad = document.getElementById("container"); if (ad) { ad.remove() } document.getElementById("column_2").style.width = "100%"; document.getElementById("column_2").style.margin = "0"; document.getElementById("sinablogbody").style.width = "100%"; document.getElementsByClassName("articalContent")[0].style.width = "100%"; let imgs = document.querySelectorAll("a>img"); let aimgs = Array.from(imgs).filter(d => d.className == ""); aimgs.forEach(img => { let link = img.parentNode.href; console.log(link) if (img.src !== link) { img.src = link img.removeAttribute("height") img.removeAttribute("width") } }) } catch (error) { console.error(error); } }, true); } enlargeimage(); window.enlargeimage = enlargeimage; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址