Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Remove Reddit Redesign Button
- // @version 1.1
- // @description Remove's the Reddit Redesign button
- // @namespace Drkirby
- // @author Drkirby
- // @match https://www.reddit.com/*
- // ==/UserScript==
- (function() {
- 'use strict';
- //GetElementsByClassName returns an HTMLCollection. It looks like an an array, but isn't for reasons.
- var redesignButtons = document.getElementsByClassName('redesign-beta-optin');
- if (redesignButtons) {
- for(var i = 0; i < redesignButtons.length; i++) {
- var redesignButton = redesignButtons[i];
- redesignButton.parentNode.removeChild(redesignButton);
- }
- }
- })();
Add Comment
Please, Sign In to add comment