Skip to content

Instantly share code, notes, and snippets.

@serverhiccups
Last active February 21, 2016 02:17
Show Gist options
  • Save serverhiccups/0ebe524e1a71bf4e716b to your computer and use it in GitHub Desktop.
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)
// ==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