Last active
April 4, 2025 18:38
-
-
Save INeedTogepi/3a02e37d6e6edccc1afe73f51e7b74aa to your computer and use it in GitHub Desktop.
Simple Userscript for the RetroAchievements website that adds a link to the Unofficial Achievements on every individual game's page
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Unofficial Achievements Link | RetroAchievements | |
| // @namespace https://gist.github.com/INeedTogepi | |
| // @version 2.2 | |
| // @downloadURL https://gist.githubusercontent.com/INeedTogepi/3a02e37d6e6edccc1afe73f51e7b74aa/raw/Unofficial-Achievements-Link_RetroAchievements.user.js | |
| // @updateURL https://gist.githubusercontent.com/INeedTogepi/3a02e37d6e6edccc1afe73f51e7b74aa/raw/Unofficial-Achievements-Link_RetroAchievements.user.js | |
| // @description Adds a link to the Unofficial Achievements on every individual game's page | |
| // @author INeedTogepi | |
| // @match https://retroachievements.org/game/* | |
| // @exclude https://retroachievements.org/game/*f=5* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=retroachievements.org | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| var linkLoc = document.querySelector("#achievement > div.lg\\:mb-0") | |
| function addLink(){ | |
| linkLoc.outerHTML = linkLoc.outerHTML + | |
| '<a href="?f=5"><b>Click here to view the Unofficial Achievements</b></a>'; | |
| } | |
| addLink(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment