how to remove <meta bla bla bla > tag ??

Subscribe to how to remove <meta bla bla bla > tag ?? 7 posts, 4 voices

 
Cece User

Hi all
My page html is

http://img141.imageshack.us/my.php?image=immagi...

i tryed lot of times whit scripts like this ( taked from http://diveintogreasemonkey.org/patterns/remove... )
but

var remove = document.getElementByTagName('meta')[0];
if (remove) {
remove.parentNode.removeChild(remove);
}

So , how to remove the meta tag , or at least remove the autorefresh ??

thank all

 
Cece User

fun , this forum dont let me write meta tags here ..

here is the image of my html ..
http://img141.imageshack.us/my.php?image=immagi...

 
Cece User

omg i found this searching for a solution

I'm a frequent visitor of uitzendinggemist.nl. It has an annoying meta refresh on most pages. You, unfortunately, can't remove these refreshes using Greasemonkey. When you remove the meta tag from the DOM tree, the refresh has already been set.
There is an extension for Firefox called RefreshBlocker which blocks those meta refreshes. You can create a white- or blacklist of sites using regular expressions.

uff ... no solution ..

my problem is becouse i want to set a window.setTimeout(falert,70000) , but meta refresh broke timer .. another solutions ??

 
Mithrandir Scriptwright

Hi,

try Meta Refresh Blocker.

 
itsjareds Scriptwright

To write it yourself, try this:

var metas = document.getElementsByTagName("meta");

for (var a=0; a<metas.length; a++) {
  if (metas[a].http-equiv.match(/refresh/))
    document.getElementsByTagName("head")[0].removeChild(metas[a]);
}

Not been tested, but should work. Someone please correct me if I'm wrong.

 
Mikado Scriptwright

Sure. You're wrong, click the link right above and read.

 
Cece User

ok thanks all , meta refresh blocker worked.