您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
redirects twitter images to the 'name=orig' keeping the format
// ==UserScript== // @author Xwth // @name Original Twitter Image // @namespace http://tampermonkey.net/ // @run-at document-start // @version 1.2 // @match https://pbs.twimg.com/media/* // @exclude /^https?:\/\/pbs\.twimg\.com\/media\/.*\.(jpg|gif|png|jpeg|bmp|webp)\?name=orig(\/*)$/ // @description redirects twitter images to the 'name=orig' keeping the format // ==/UserScript== ;(function() { window.stop() let url = document.URL if(document.URL.match(/\?format=/)){ let match = document.URL.match(/format=\w+/) let format = match[0].split("=")[1] url = document.URL.replace(/(&name=)(\w+)/,'?name=orig') url = url.replace(/(\?format=)(\w+)/,"."+format) location.href = url return } else { let re = /^https?:\/\/pbs\.twimg\.com\/media\/.*\.(jpg|gif|png|jpeg|bmp|webp)(?::thumb|:small|:large|:orig)(\/*)$/ if (re.test(url)) { location.href = url.split(':')[1] + '?name=orig' return } location.href = url.split(':')[1] + '?name=orig' return } })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址