سؤال

some firefox extentions can avoid <audio> <video> or many html tags. for example noscript plugin deletes all <script> tag and inside function.

my question: can i avoid <noscript> tag as well and how?

for quality standarts:

this is html

<div><noscript>somethings</noscript></div>
<div><h1>kel</h1></div>

i want my browser read it like

<div></div>
<div><h1>kel</h1></div>

like there is no <noscript> tag at all

EDIT

++plus question++

there is no option on noscript addon even if it can hide <audio> <video> and many other things. Do you know why is that? Has anyone hear about "it isn'T allowed hiding <noscript> tags" or something like that?

هل كانت مفيدة؟

المحلول

If you just want to get rid of them, you can use JavaScript or jQuery to remove them:

// jQuery
$("noscript").remove();

// JS
var noscript = document.getElementsByTagName("noscript");
for(var i=0; i<noscript.length; i++) {
    noscript[i].parentNode.removeChild(noscript[i]);
}

Hope this helps.

EDIT: from following the comment string, it would appear you want to get rid of them from the console. Open the console and type the following in:

var s = document.createElement("script");
s.src = "//code.jquery.com/jquery-1.11.0.min.js";
$("noscript").remove();

Alternatively, you can just use the pure JS above.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top