Skip to content
This repository has been archived by the owner on Nov 2, 2024. It is now read-only.

Commit

Permalink
V.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Miala-python authored Dec 21, 2023
1 parent 95f8dd4 commit 70a8f2d
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions YT.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log('YT.js >> V2.00.03');
console.log('YT.js >> V2.00.04');

// 1. Créez un objet de lecteur IFrame
var player = 'none';
Expand Down Expand Up @@ -122,10 +122,20 @@ function onYouTubeIframeAPIReady() {

}

while (YT.loading !== 0) {
// $host_msg = document.querySelector('[title="Hosted on free web hosting 000webhost.com. Host your own website for FREE."]')
// if ($host_msg != null) {
// $host_msg.parentNode.removeChild($host_msg);
// }
};
onYouTubeIframeAPIReady();
// $host_msg = document.querySelector('[title="Hosted on free web hosting 000webhost.com. Host your own website for FREE."]')
// if ($host_msg != null) {
// $host_msg.parentNode.removeChild($host_msg);
// }

function waitLoad() {
if (YT.loaded === 1) {
onYouTubeIframeAPIReady();
} else {
// Appel récursif avec un délai d'attente de 1 seconde
setTimeout(function() {
waitLoad();
}, 1000);
}
}

waitLoad()

0 comments on commit 70a8f2d

Please sign in to comment.