您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a direct link for each image in a tweet after "Reply/RT/Like/DM" icons
// ==UserScript== // @name Twitter Image Link // @description Add a direct link for each image in a tweet after "Reply/RT/Like/DM" icons // @icon https://abs.twimg.com/favicons/favicon.ico // @include twitter.com // @match *://*.twitter.com/* // @exclude *://twitter.com/i/cards/* // @version 1.0.1 // @grant none // @namespace https://gf.qytechs.cn/users/113252-garrison-baird // @run-at document-end // ==/UserScript== function linker () { var divs = document.querySelectorAll('.AdaptiveMedia'); divs.forEach(function(div) { var container = div.parentElement; var content = container.parentElement; if (content.querySelector('.ProfileTweet-action--extractImages')) return; var div_a = document.createElement('div'); div_a.className = "ProfileTweet-action ProfileTweet-action--extractImages"; content.querySelector('div.ProfileTweet-actionList').appendChild(div_a); var sources = div.querySelectorAll('img'); sources.forEach(function(source){ var source = source.getAttribute('src')//.replace(/\.jpg$/i, '.jpg:orig'); var button = document.createElement('a'); button.className = 'ProfileTweet-actionButton u-textUserColorHover'; div_a.appendChild(button); var div_span = document.createElement('div'); div_span.className = 'IconContainer js-tooltip'; button.appendChild(div_span); var span = document.createElement('span'); span.className = 'Icon Icon--medium Icon--photo'; div_span.appendChild(span); button.setAttribute('href', source); button.setAttribute('target', '_blank'); }) }) } linker(); if (window.location.host == 'tweetdeck.twitter.com') { setInterval(linker, 1000); } else { window.addEventListener('scroll', linker); setInterval(linker, 5000); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址