Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Nuke <noscript> tags
// ==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