Skip to content

Commit

Permalink
Update jdn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
RachamimYaakobov committed Nov 11, 2015
1 parent 0a729ae commit 3d9898e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions jdn.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(function(window) {
alert("trueUrl");
setTimeout(function() {
/* window.onload = function() {*/
/* setTimeout(function() {*/
window.onload = function() {
var imgs = document.getElementsByTagName('img');
for (var i = 0; i < imgs.length; i++) {
if (imgs[i].src.indexOf("jdn.co.il/wp-content/uploads/wp-banners") != -1) {
Expand All @@ -10,16 +9,16 @@
}
}
// setVideo();
/* };*/
}, 3000);
};
/* }, 3000);*/
})(window);

/*function setVideo() {
function setVideo() {
var iframes = document.getElementsByTagName("iframe");
for (var i = 0; i < iframes.length; i++) {
var doc = iframes[i].contentDocument;
var script = doc.getElementsByTagName("script")[0].innerText;
var trueUrl = script.substring(script.indexOf("htpp"), script.indexOf("mp4"));
alert(trueUrl);
}
}*/
}

0 comments on commit 3d9898e

Please sign in to comment.