SHARE
TWEET

Permet d'ouvrir un fichier vidéo avec VLC facilement

SimonBHB May 28th, 2020 (edited) 1,127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         VLC
  3. // @namespace    http://tampermonkey.net/
  4. // @version      3.0
  5. // @description  Quand on click sur l'icone a coté du lien du fichier cela copie dans le press papier une commande pour VLC et en faisant Windows + R cela ouvre VLC avec le film directement. Tester sous Google Chrome
  6. // @author       Simon
  7. // @match        http://*/*
  8. // @require http://code.jquery.com/jquery-latest.js
  9. // @require https://cdnjs.cloudflare.com/ajax/libs/jStorage/0.4.12/jstorage.min.js
  10. // @grant    GM_addStyle
  11. // ==/UserScript==
  12.  
  13. // Je n'ai pas trouvé de CDN pour jnotify:
  14. (function(B){B.jnotify=function(L,N,M){return new C(L,N,M)};B.jnotify.version="1.3.01";var K,G=0,D=[],F=0,I=false,J=false,E,A={type:"",delay:2000,sticky:false,clickToDismiss:true,closeLabel:"&#x2716;",showClose:true,fadeSpeed:250,slideSpeed:250,classContainer:"jnotify-container",classNotification:"jnotify-notification",classDismissible:"jnotify-dismissible",classBackground:"jnotify-background",classClose:"jnotify-close",classMessage:"jnotify-message",init:null,create:null,beforeRemove:null,remove:null,transition:null};B.jnotify.setup=function(L){A=B.extend({},A,L)};B.jnotify.play=function(N,O){if(I&&(N!==true)||(D.length==0)){return }I=true;var M=D[0];var L=(arguments.length>=2)?parseInt(O,10):M.options.delay;E=setTimeout(function(){E=0;M.remove(function(){if(D.length==0){I=false}else{if(!J){B.jnotify.play(true)}}})},L)};B.jnotify.pause=function(){clearTimeout(E);J=I=true};B.jnotify.resume=function(){J=false;B.jnotify.play(true,0)};function H(N,M,L,O){if("delegate" in jQuery.fn){N.delegate(L,M,O)}else{N.on(M,L,O)}}function C(S,T){var R=this,L=typeof T;if(L==="number"){T=B.extend({},A,{delay:T})}else{if(L==="boolean"){T=B.extend({},A,{sticky:true})}else{if(L==="string"){var P=T;T=B.extend({},A,{type:P});if((arguments.length>2)&&((typeof arguments[2]!=="undefined")||(arguments[2]!=null))){if(typeof arguments[2]=="number"){T.delay=arguments[2]}else{if(typeof arguments[2]=="boolean"){T.sticky=arguments[2]}}}else{if(P==="error"){T.sticky=true}}}else{T=B.extend({},A,T)}}}this.id=F++;this.options=T;if(!K){K=B('<div class="'+A.classContainer+'" />').appendTo("body");if(B.isFunction(T.init)){T.init.apply(R,[K])}function Q(U){var V=U.data("jnotify");V.remove()}H(K,"click.jnotify","a."+T.classClose,function(U){Q(B(U.currentTarget).closest("."+T.classNotification))});H(K,"click.jnotify","div."+T.classDismissible,function(U){Q(B(U.currentTarget))})}function M(W){var V='<div class="'+T.classNotification+(T.type.length?(" "+T.classNotification+"-"+T.type):"")+(T.clickToDismiss?(" "+T.classDismissible):"")+'"><div class="'+T.classBackground+'"></div>'+(T.sticky&&T.showClose?('<a class="'+T.classClose+'">'+T.closeLabel+"</a>"):"")+'<div class="'+T.classMessage+'"><div>'+W+"</div></div></div>";var U=B(V);U.data("jnotify",R);U.appendTo(K);if(B.isFunction(T.create)){T.create.apply(R,[U,K])}G++;return U}function O(V){for(var U=0;U<D.length;U++){if(V.id===D[U].id){D.splice(U,1);break}}}this.remove=function(X){var U=N.find("."+T.classMessage),V=U.parent();O(R);G--;if(B.isFunction(T.beforeRemove)){T.beforeRemove.apply(R,[U])}function W(){V.remove();if(B.isFunction(X)){setTimeout(function(){X.apply(R,[U])},1)}if(B.isFunction(T.remove)){setTimeout(function(){T.remove.apply(R,[U])},1)}}if(B.isFunction(T.transition)){T.transition.apply(R,[V,U,D.length-1,W,T])}else{U.fadeTo(T.fadeSpeed,0.01,function(){if(G===0){W()}else{V.slideUp(T.slideSpeed,W)}});if(G<=0){V.fadeOut(T.fadeSpeed)}}};var N=M(S);if(!T.sticky){D.push(this);B.jnotify.play()}return this}})(jQuery);
  15.  
  16. // Le CSS de jnotify:
  17. GM_addStyle ( `
  18. div.jnotify-container{position:fixed;top:0;left:0;width:100%;z-index:100000;}div.jnotify-container div.jnotify-notification{position:relative;}div.jnotify-container div.jnotify-notification div.jnotify-background{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#e3f0db;filter:alpha(opacity=90);-moz-opacity:.90;opacity:.90;z-index:1;}div.jnotify-container div.jnotify-notification a.jnotify-close,div.jnotify-container div.jnotify-notification a.jnotify-close:link,div.jnotify-container div.jnotify-notification a.jnotify-close:visited,div.jnotify-container div.jnotify-notification a.jnotify-close:focus,div.jnotify-container div.jnotify-notification a.jnotify-close:hover{position:absolute;top:2px;right:5px;padding:0 5px;font:bold 1.4em Verdana,Arial,Helvetica,sans-serif;line-height:1em;color:#567b1b;text-decoration:none;z-index:3;cursor:pointer;}div.jnotify-container div.jnotify-notification div.jnotify-message{position:relative;z-index:2;padding:20px;text-align:center;color:#567b1b;font:bold 1.4em Verdana,Arial,Helvetica,sans-serif;line-height:1.2em;}div.jnotify-container div.jnotify-notification div.jnotify-message *{font:inherit;font-size:1em;}div.jnotify-container div.jnotify-notification-error div.jnotify-background{background-color:#e4abb9;}
  19. div.jnotify-container div.jnotify-notification-error a.jnotify-close,div.jnotify-container div.jnotify-notification-error div.jnotify-message{color:#a72947!important;}div.jnotify-container div.jnotify-notification-warning div.jnotify-background{background-color:#fff7d1;}div.jnotify-container div.jnotify-notification-warning a.jnotify-close,div.jnotify-container div.jnotify-notification-warning div.jnotify-message{color:#c2a928!important;}
  20. ` );
  21.  
  22. // image en base64
  23. // On va afficher un icône VLC a la place du vrai icone du site:
  24. var imgVLC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAZCAYAAAA14t7uAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAADsElEQVRIx6WUTWhdRRSAvzNz7333vbyXvCTmV/PjTzVIi4JgBcFKpRalSbsqgghGW1et7hQ38haudOVC3GjQhbroRuxCaARpjYiLoiKiJoLGhh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8hmEvmM1QmhVOBetr0qg1pIoIIuIJ4q0KgjEISKulW7ZFcGLQhlXWBBZuzPu9Wv8bICR8ewLtHFQAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjAtMDUtMzBUMDA6NDk6MzQrMDA6MDBXgMt0AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIwLTA1LTMwVDAwOjQ5OjM0KzAwOjAwJt1zyAAAAABJRU5ErkJggg==";
  25.  
  26. // Icône pour pour copier le lien:
  27. var imgCopier = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOxAAADsQBlSsOGwAAAX5JREFUWIXt1j1LHFEUBuBH3RSiBDQQsDOkFNwsBGyEFAmCYP5E/kB+QuxCKsFOAyksrWxMIwohIYUfiAmYxiAiSJAo+AELi9lNMSOuMDsfjh8I88Jh7rlz7nveuffMmaFAgQL3DBM4iLEtlLMQtmUUMIcjzETce4opHGIUy2kISxkFwDYWI+b/htdPWMAYvl6B/xLa8Fvw1EeoYbxF7AAa6MI7nOJVXgEdIekbvMC3GAEl/MJPzOMYVQzFJWhPKWQVX1xscxTOMIyP+I4PYXwljvgqNRCHA0w2+a+TFuQR8ADPI+ZrWEtLkkdAD5Yi5vcEr+SNC9hHZ471SF+EUejFiqA7VsLx26wkeXagKqj4HfwJxxu3LWC6yZ9uFRiHPEdwLbhJAd3ow0kekvNWPBj6s6hnsPVQSEskfY47BC22jB94hP6Y+Mf4jBFBYW7iX0KORAENPBMcV5K9DAV35UnajHZBa22ktDreZ0mQ5o/oCR6m5DvEbhYBBQrcOf4DsSxdkVetnPQAAAAASUVORK5CYII=";
  28.  
  29. // Icône pour lancer le film sur la page:
  30. var imgLecture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAMAAADDpiTIAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAABoPAAAaDwFOtF2YAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAtNQTFRF////AQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACAQACOCYu0gAAAPB0Uk5TAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBobHB0eHyAhIiMlJygpKissLS4vMDEyMzQ1Njc4Ojs8PT4/QEFCQ0RFRkdISUpMTU5PUFFSU1RVVldYWVpbXF1eX2BhYmNkZWZoaWprbG1ub3Bxc3R1dnd4eXp7fH1+f4CBgoOEhYaIiYqLjI2Oj5CRkpOUlZaXmJmam5ydn6ChoqOkpaanqKmqq6ytrq+wsbKztba4ubq7vb6/wMHCw8TFxsfIycrLzM3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aTNIo/rBPdPR9h+MbaSQNXBV+JPT5YMFH+sLP8J4g7oBXTPS9B+L0ut8UCU8V8KYoPzVcI2eauGN3lIuEfvmOWH3ba7IEjtklSBx5xa4xgRovS06Jx2VWOh39ysxx+rzXQmk2fv9D56L/cP/4Zhojq6X5xD1lTkS/bM/E5hode8R/QNo5Rx0R+c6lDdBBXvZK2MQMh0SPlGRMDNN4cNkc9l12ivOtYe2pZX31ho+nBA9bns1pe1iRvXyYDvBxxJKgT/Jum3MMi3Yn99EffUdJpwkbL9pSdqTm4sYJnbS/HSmeHgkrDllYhKzw0IqEHjqm3+kSEjNr82mT44kenN48K0bHdYi0Q+gQPXnZ1hM3De4Sam+e2LpscnQHvdIX9qvQaUjix9uPXriJeiU8uHnh6PaPE4d00u97eSQwvEfM2OmLVn+9+0DW8R/O/nQ1/3ZphddbUXo7/+pPZ384nnVg99erF00fG9MjXKHLvP8HT7HhfbEJ7NEAAAAASUVORK5CYII=";
  31.  
  32. (function() {
  33.     'use strict';
  34.     $(document).ready(function() {
  35.         // URL de base du site:
  36.         var baseUrl = "http://" + document.location.hostname;
  37.  
  38.         // URL de l'image du du site:
  39.         var urlIMGMovie = "/icons/movie.gif";
  40.  
  41.         var title = $('title').html();
  42.  
  43.         var pathFile = $("h1").text().split(" ")[2] + "/";
  44.  
  45.         // On sépare tout les mots du titre:
  46.         var splitTitle = $('title').html().split(" ");
  47.         // Si 3 mots ou plus:
  48.         if(splitTitle.length >= 3) {
  49.             // On regarde les deux premier mot de la page. Si ça commence par ces deux mots c'est une page qu'on recherche:
  50.             if(splitTitle[0] == 'Index' && splitTitle[1] == 'of') {
  51.                 // Chemin vers VLC(peut ne pas exister:
  52.                 var vlc = $.jStorage.get("vlc");
  53.  
  54.                 // Formulaire VLC:
  55.                 $("table").append('<tr><td colspan="6"><input id="vlc" placeholder="Path/vers/vlc.exe"><br><br><span id="submit" style="margin:5px;padding:5px;border-radius: 10px;box-shadow: 0px 0px 10px #000000;opacity: 0.9;background-color:#F1F1F1;">Envoyer</span></td></tr>');
  56.  
  57.                 // Pour calculer la durée de la vidéo en seconde:
  58.                 $("table").append('<tr><td colspan="6"><hr><input class="heure_calc" placeholder="heure"><input class="minute_calc" placeholder="minute"><input class="seconde_calc" placeholder="seconde">: Résultat: <input class="result_clc" placeholder="resultat"></td></tr>');
  59.  
  60.                 // On ajoute les div pour gérer le lecteur vidéo:
  61.                 $("body").prepend('<div class="close_lecteur">Fermer le lecteur vidéo</div><div id="video_view"></div><div class="close_lecteur">Fermer le lecteur vidéo</div>');
  62.  
  63.                 // On le cache par défaut:
  64.                 $(".close_lecteur").fadeOut(5);
  65.  
  66.                 // Pour le dev j'affiche les bordure du tableau:
  67.                 //$("table").attr("border", "1");
  68.  
  69.                 $("html").css('background-color', "#F1F1F1");
  70.  
  71.                 // On boucle sur les lignes du tableau de la page:
  72.                 $.each($('tr'), function(key, value) {
  73.                     // On rajoute un titre a notre colonne sur la première ligne autrement elle en a pas:
  74.                     if(key == 0) {
  75.                         $(value).append('<th>Start Time</th>');
  76.                     }
  77.  
  78.                     // On agrandit la petite barre hr sur la seconde ligne et la dernière ligne vu qu'on rajoute une colonne:
  79.                     if(key == 1 || key == $("tr").length-3) {
  80.                         value.innerHTML = '<th colspan="6"><hr></th>';
  81.                     }
  82.  
  83.                     // On prend les lignes qui contiennent des fichiers sauf les lignes qui peuvent pas en contenir:
  84.                     if(key > 2 && key < $("tr").length-1) {
  85.                         $.each(value.cells, function(key2, value2 ) {
  86.                             if(key2 == 0) {
  87.                                 // On regarde qu'elle type de fichier on a:
  88.                                 if($(value2.innerHTML).attr("src") == urlIMGMovie) {
  89.                                     // Le nom du fichier:
  90.                                     var fileName = $(value.cells[1].innerHTML).attr("href");
  91.  
  92.                                     // On crée un lien absolue:
  93.                                     var url = baseUrl + pathFile + fileName;
  94.  
  95.                                     // On param la durée par défaut ou celle stockée:
  96.                                     var duree = "0";
  97.                                     if($.jStorage.get(url) == null) {
  98.                                         $.jStorage.set(url, 0);
  99.                                     } else {
  100.                                         duree = $.jStorage.get(url);
  101.                                     }
  102.  
  103.                                     // On affiche une colonne avec la durée:
  104.                                     $(value).append('<td><input class="data_duree" value="' + duree + '" data-url="' + url + '" style="width:115px;" placeholder="Durée en seconde"></td>');
  105.  
  106.                                     // On va afficher l'image de VLC seulement si on a un path:
  107.                                     var textVLC = '';
  108.                                     if(vlc != null) {
  109.                                         textVLC = '<img src="' + imgVLC + '" alt="[VID]">';
  110.                                     } else {
  111.                                         //console.log("pas de vlc");
  112.                                     }
  113.  
  114.                                     // On affiche les images:
  115.                                     value2.innerHTML = textVLC + ' <img class="view" style="width:18px;" src="' + imgLecture + '"> <img class="copy" style="width:26px;" src="' + imgCopier + '">';
  116.                                 }
  117.                             }
  118.                         });
  119.                         //console.log("--------------------");
  120.                     }
  121.                 });
  122.  
  123.  
  124.                 $(".copy").click(function(){
  125.                     var urlNew = baseUrl + pathFile + $(this).parent().next().children('a').attr("href");
  126.  
  127.                     // On va copier les infos dans le press papier:
  128.                     var $temp = $("<input>");
  129.                     $.jnotify('Lien copié ', 'notice', {timeout: 2});
  130.                     $(this).parent().append($temp);
  131.                     $temp.val(urlNew).select();
  132.                     document.execCommand("copy");
  133.                     $temp.remove();
  134.                 });
  135.  
  136.                 $("#vlc").attr("value", vlc);
  137.                 $("img").click(function(){
  138.                     if($(this).attr("src") == imgVLC) {
  139.                         var urlNew = baseUrl + pathFile + $(this).parent().next().children('a').attr("href");
  140.  
  141.                         // On va copier les infos dans le press papier:
  142.                         var $temp = $("<input>");
  143.                         $.jnotify('Lien avec VLC copié', 'notice', {timeout: 2});
  144.                         $(this).parent().append($temp);
  145.                         $temp.val(vlc + " " + urlNew + " --start-time " + $.jStorage.get(urlNew)).select();
  146.                         document.execCommand("copy");
  147.                         $temp.remove();
  148.                     }
  149.                 });
  150.  
  151.                 // Affiche le lecteur vidéo:
  152.                 $(".view").click(function(){
  153.                     var urlNew = baseUrl + pathFile + $(this).parent().next().children('a').attr("href");
  154.  
  155.                     $("#video_view").html('<div id="video_container"><video id="video" controls autoplay width="800"><source src="' + urlNew + '#t=' + $.jStorage.get(urlNew) + '" type="video/mp4" id="mp4"><p>Votre navigateur ne prend pas en charge les vidéos HTML5.</p></video></div>');
  156.                     $("#video_view").fadeIn(900);
  157.  
  158.                     //$("html").css("background-color", "#000");
  159.                     //$("table").css("color", "#fff");
  160.                     $(".close_lecteur").fadeIn();
  161.                     //$(".close_lecteur").css("color", "#fff");
  162.                 });
  163.  
  164.                 $(".close_lecteur").click(function(){
  165.                     $.jnotify('Durée ou a été arrêté la vidéo: ' + $('#video_container').find('video').get(0).currentTime + ' secondes' , 'notice', {timeout: 2});
  166.                     $("#video_view").html("");
  167.  
  168.                     $(".close_lecteur").fadeOut();
  169.                     //$("html").css("background-color", "#F1F1F1");
  170.                     //$("table").css("color", "#000");
  171.                     //$(".close_lecteur").css("color", "#000");
  172.                 });
  173.  
  174.                 // Enregistre la durée voulu:
  175.                 $(".data_duree").keyup(function(event){
  176.                     console.log(event.which + " " + $(this).val() + " " + $(this).data('url'));
  177.                     $.jStorage.set($(this).data('url'), $(this).val());
  178.                 });
  179.  
  180.                 $("#submit").click(function(){
  181.                     console.log("submit");
  182.                     $.jStorage.set("vlc", $("#vlc").val());
  183.                     // On recharge la page pour avoir les infos a jour:
  184.                     document.location.reload(true);
  185.                 });
  186.                 //$("h1").html("URL du site ICI");
  187.  
  188.  
  189.                 $(".heure_calc").keyup(function(event){
  190.                     var heure = new Number($(this).val());
  191.                     var minute = new Number($(".minute_calc").val());
  192.                     var seconde = new Number($(".seconde_calc").val());
  193.                     var calc = (heure*3600) + (minute*60) + seconde
  194.                     //console.log(event.which + " " + $(this).val());
  195.                     console.log(calc);
  196.                     $(".result_clc").val(calc);
  197.                 });
  198.  
  199.                 $(".minute_calc").keyup(function(event){
  200.                     var heure = new Number($(".heure_calc").val());
  201.                     var minute = new Number($(this).val());
  202.                     var seconde = new Number($(".seconde_calc").val());
  203.                     var calc = (heure*3600) + (minute*60) + seconde
  204.                     //console.log(event.which + " " + $(this).val());
  205.                     console.log(calc);
  206.                     $(".result_clc").val(calc);
  207.                 });
  208.  
  209.                 $(".seconde_calc").keyup(function(event){
  210.                     var heure = new Number($(".heure_calc").val());
  211.                     var minute = new Number($(".minute_calc").val());
  212.                     var seconde = new Number($(this).val());
  213.                     var calc = (heure*3600) + (minute*60) + (seconde);
  214.                     //console.log(event.which + " " + $(this).val());
  215.                     console.log(calc);
  216.                     $(".result_clc").val(calc);
  217.                 });
  218.             }
  219.         }
  220.     });
  221. })();
  222. // E:\VideoLAN\vlc\vlc.exe
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top