Skip to content

Instantly share code, notes, and snippets.

@mfukar
Last active March 24, 2016 07:09
Show Gist options
  • Save mfukar/d1dd369deaa7c3941fde to your computer and use it in GitHub Desktop.
Save mfukar/d1dd369deaa7c3941fde to your computer and use it in GitHub Desktop.
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