您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirects the Android Arsenal library links to Github automatically if it is coming from the RSS Feed.
// ==UserScript== // @name Android Arsenal Feed Link to Github Redirection // @description Redirects the Android Arsenal library links to Github automatically if it is coming from the RSS Feed. // @version 2.1 // @namespace io.github.ni554n // @match https://android-arsenal.com/details/*/*?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+Android_Arsenal+%28The+Android+Arsenal%29 // @supportURL https://github.com/ni554n/userscripts/issues // @license MIT // @author Nissan Ahmed // @homepageURL https://ni554n.github.io/ // @contributionURL https://paypal.me/ni554n // ==/UserScript== const generalList = document.getElementsByClassName("row project-header")[0]?.firstElementChild const labels = generalList.getElementsByTagName("dt") // Grab the Github link and forward to it. // "Link" label is faster to get to from the end. for (let i = labels.length - 1; i >= 0; i--) { const label = labels.item(i); if (label.innerText === "Link") { const githubLink = label.nextElementSibling.innerText window.location.replace(githubLink); break; } }