Kees Sonnema
Kees Sonnema

Reputation: 5784

How to remove strange div called dp_swf_engine from html page?

On my site, I recently found a strange new automatically generated div. when I look at it in development tools in chrome I says:

<div id="dp_swf_engine" style="position: absolute; width: 1px; height: 1px;"><embed style="width: 1px; height: 1px;" type="application/x-shockwave-flash" src="http://www.ajaxcdn.org/swf.swf" width="1" height="1" id="_dp_swf_engine" name="_dp_swf_engine" bgcolor="#336699" quality="high" allowscriptaccess="always"></div>

I really don't know what it is, and where it's coming from.

Upvotes: 4

Views: 3794

Answers (3)

Suresh Peiris
Suresh Peiris

Reputation: 396

  • Sometimes it will be automatically adding from your web hosting server
  • If you are using an external plugins it will be coming from it
  • I could see you are using google fonts.... Try removing and check your site
  • You can run your website on a local server...

To hide the DIV, Try adding this css:

<style type="text/css">
dp_swf_engine {
 display:none;
}
</style>

Thanks

Upvotes: 2

Tib
Tib

Reputation: 2631

I already had a similar problem and the div came from a chrome extension, check which extension can modify your pages.

Upvotes: 8

Ema.H
Ema.H

Reputation: 2878

On the document ready event :

var element = document.getElementById("dp_swf_engine");
document.body.removeChild(element) 

if your div is directly in your body element else, find his parent for call removeChildFunction...

I hope that help !

Upvotes: 0

Related Questions