Last active
March 24, 2016 07:09
-
-
Save mfukar/d1dd369deaa7c3941fde to your computer and use it in GitHub Desktop.
Nuke <noscript> tags
This file contains 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 nuke noscript | |
// @namespace https://gist.github.com/mfukar/d1dd369deaa7c3941fde | |
// @version 0.2 | |
// @description Remove all <noscript> tags in every document | |
// @author mfukar | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ | |
'use strict'; | |
var nscript = document.getElementsByTagName('noscript'); | |
if (typeof nscript === 'string') { | |
nscript = [ nscript ]; | |
} | |
for (var i = 0; i < nscript.length; i++) { | |
nscript[i].parentNode.removeChild(nscript[i]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment