您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds clickable links to quoted tweets. Useful if you block 3rd party content.
当前为
// ==UserScript== // @name Links to tweets for SkyScraperCity // @name:pl Linki do tweetów w SkyScraperCity // @description Adds clickable links to quoted tweets. Useful if you block 3rd party content. // @description:pl Dodaje klikalne linki do tweetów. Przydatne kiedy blokujesz zawartość witryn trzecich. // @version 1 // @author me // @namespace https://github.com/skalee/ssc-grease // @license CC0 // @homepageURL https://github.com/skalee/ssc-grease // @supportURL https://www.skyscrapercity.com/showthread.php?t=2017475 // @grant none // @include https://www.skyscrapercity.com/showthread.php?* // @include https://www.skyscrapercity.com/showpost.php?* // ==/UserScript== document.querySelectorAll("blockquote.twitter-tweet").forEach(function(tweet) { var tweetLink = tweet.querySelector("a[href]") var clonedLink = tweetLink.cloneNode() clonedLink.target = "_blank" clonedLink.innerText = "tweet" var wrapperElement = document.createElement("p") wrapperElement.append("(") wrapperElement.append(clonedLink) wrapperElement.append(")") tweet.parentElement.insertBefore(wrapperElement, tweet.nextSibling) })