Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
added minimum height for iframe injection
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfulgeanu authored and smcgregor committed Sep 5, 2014
1 parent 8a5a28d commit 87de041
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions javascripts/content_scripts/privly.js
Expand Up @@ -435,14 +435,17 @@ var privly = {
while (--i >= 0){
var a = anchors[i];
var privlyHref = a.getAttribute("privlyHref");

if(a.parentNode.offsetHeight > 20) {

if (privlyHref && privlyHref.indexOf("privlyInject1",0) > 0)
{
privly.processLink(a);
}
else if (privlyHref && privlyHref.indexOf("INJECTCONTENT0",0) > 0)
{
privly.processLink(a);
if (privlyHref && privlyHref.indexOf("privlyInject1",0) > 0)
{
privly.processLink(a);
}
else if (privlyHref && privlyHref.indexOf("INJECTCONTENT0",0) > 0)
{
privly.processLink(a);
}
}
}
},
Expand Down

0 comments on commit 87de041

Please sign in to comment.