您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Links to small Twitter images are changed to point to the large size of the image.
当前为
// ==UserScript== // @name Large Twitter images // @author pizzahut // @description Links to small Twitter images are changed to point to the large size of the image. // @license MIT // @match https://*/* // @match http://*/* // @namespace https://greasyfork.org/users/1117297-pizzahut // @grant none // @version 1 // ==/UserScript== var links, thisLink, i; links = document.evaluate("//a[ contains(@href, 'https://pbs.twimg.com/') and contains(@href, 'name=small') ]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); for (i = 0; i < links.snapshotLength; i++) { thisLink = links.snapshotItem(i); thisLink.href = thisLink.href.replace(/name=small/,'name=large'); }