Last active
February 21, 2016 02:17
-
-
Save serverhiccups/0ebe524e1a71bf4e716b to your computer and use it in GitHub Desktop.
Change discuss link on scratch to advanced topics (Now replaces the explore button instead)
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 Advanced Topics Linker | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Replace explore with Advanced Topics link | |
// @author Dylan5797 (and hiccup01) | |
// @match https://scratch.mit.edu/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
document.addEventListener("DOMContentLoaded", function() {document.getElementsByClassName('site-nav').childNodes[0].childNodes[2].innerHTML = 'Advanced Topics'; document.querySelector('ul.site-nav').childNodes[1].childNodes[0].href = 'https://scratch.mit.edu/discuss/31/'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment