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

Commit

Permalink
+confirmREPRISE
Browse files Browse the repository at this point in the history
  • Loading branch information
Miala-python authored Jan 12, 2024
1 parent 47dd77f commit 844fe87
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
10 changes: 7 additions & 3 deletions YT.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
console.log('YT.js >> V2.02.26');
console.log('YT.js >> V2.02.27');

function sendToServer(playlist_txt, listID, nb) {

Expand Down Expand Up @@ -94,7 +94,7 @@ function shuffleArray(arr) {

function shuffleAsk() {
// #ranQ?
var reponse = confirm("Lecture de la playlist en mode aléatoire ?");
var reponse = confirm("Lecture de la playlist en mode aléatoire ?\nOK = Oui | Annuler = Non");

if (reponse) {
shuffleArray(my_playlist);
Expand Down Expand Up @@ -370,16 +370,20 @@ function waitLib() {

console.log("WaitLib... 11/" + waitLibI)

var lcl_REPRISE = 0;


if (lcl_LOADED || waitLibI == 11) {

if (lcl_LOADED) {
if (lcl_load('plid') == listValue) {
lcl_REPRISE = -(confirm("Reprendre où vous en étiez ?\nOK = Oui | Annuler = Non"));
}
if (lcl_REPRISE){
let watch_id = lcl_load('watch_id');
id = watch_id ? watch_id : 0;
let pl_ctn = lcl_load_list('pl_ctn');
my_playlist = pl_ctn ? pl_ctn : my_playlist;

} else {
lcl_rmv_all();
lcl_save('plid', listValue);
Expand Down
6 changes: 3 additions & 3 deletions fav.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,16 @@ if (url.hostname === "www.youtube.com" && url.pathname === "/watch") {

TopBar.innerHTML = `
Appuyez sur
<button onclick="
<a onclick="
Array.from(play_buttons).forEach(e => {
e.setAttribute('disabled', '');
e.innerHTML = 'Scan en cours...';
});
TopBar.innerHTML = 'Scan en cours... Veuillez patienter... (Pourcentage dans le titre de la page)';
scan_vids();
">
ce bouton
</button>
ce lien
</a>
pour lancer le scan.
`;
TopBar.setAttribute("style", `
Expand Down
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,11 @@ <h2>V0.02.2 - **/0*/2024</h2>
<li>Résolutions de bugs mineurs:
<ul>
<li>Confirmation de restauration des données locales</li>
<li>Bugfix: Firefox Fav Bookmark</li>
<li>Firefox Fav Bookmark</li>
</ul>
</li>
<li>Ajout mineur de commentaires dans le code.</li>
<li>Ajout d'un bouton dans l'en-tête YT</li>
</ul>
</li>
<li>
Expand Down

0 comments on commit 844fe87

Please sign in to comment.