您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Restore t.co links, support Twitter web/mobile/tweetdeck
当前为
// ==UserScript== // @name Twitter t.co GO TO HELL // @description Restore t.co links, support Twitter web/mobile/tweetdeck // @include twitter.com // @match *://*.twitter.com/* // @version 1.0 // @grant none // @namespace https://gf.qytechs.cn/users/113252-garrison-baird // ==/UserScript== function main () { Array.prototype.slice.call(window.document.querySelectorAll('a[href*="t.co"]'), 0) .forEach(function (el) { if (el.dataset && el.dataset.expandedUrl) { // Twitter web el.href = el.dataset.expandedUrl; } if (el.dataset && el.dataset.fullUrl) { // TweetDeck el.href = el.dataset.fullUrl; } if (el.children.length > 0 && el.children[0].tagName == "SPAN" && el.children[0].innerText.startsWith("(link: ")) { // Fucking Twitter mobile (https://mobile.twitter.com/) // el.children[0].innerText == "(link: https://www.google.com/) " var href = el.children[0].innerText.trim(); href = href.substring("(link: ".length, href.length - ")".length); el.href = href; } }); }; main(); if (window.location.host == 'tweetdeck.twitter.com') { // TweetDeck won't trigger 'scroll' event setInterval(main, 1000); } else { window.addEventListener('scroll', main); }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址