Greasy Fork is available in English.

Video.mediaset.it native video player and direct links

This script allows you to watch and download videos on Video Mediaset.

Precedente: v6.5.5 Updated live stream URL
Nuova: v6.5.6 Fix unsafeWindow on Firefox and add clickable link for live streams

  • --- /tmp/diffy20200919-27931-5d1491 2020-09-19 14:49:39.536913952 +0000
  • +++ /tmp/diffy20200919-27931-1v2wct7 2020-09-19 14:49:39.536913952 +0000
  • @@ -6,7 +6,7 @@
  • // @include http://www.video.mediaset.it/player/*
  • // @include https://*.mediasetplay.mediaset.it/*
  • // @include http://www.mediaset.it/*
  • -// @version 6.5.5
  • +// @version 6.5.6
  • // @require http://code.jquery.com/jquery-latest.min.js
  • // @grant GM_xmlhttpRequest
  • // @grant GM.xmlHttpRequest
  • @@ -35,7 +35,7 @@
  • }
  • var base_selector = "https://video.lazza.dk/mediaset?id=";
  • -var loc = window.location;
  • +var loc = unsafeWindow.location;
  • var isIframe = loc.href.indexOf("player/") > 0;
  • var isPlay = loc.href.indexOf("mediasetplay.mediaset.it/video/") > 0;
  • @@ -48,7 +48,10 @@
  • 'color': textcolor
  • });
  • $(selector + ' a').css('color', textcolor);
  • - $(selector + ' pre').css('white-space', 'pre-wrap');
  • + $(selector + ' pre').css({
  • + 'white-space': 'pre-wrap',
  • + 'word-break': 'break-all',
  • + });
  • $(selector + ' *').css('font-size', '15px');
  • }
  • @@ -57,7 +60,7 @@
  • console.log("LIVE");
  • $('<div id="stream-url">').insertAfter($('#playerContainer').parent());
  • $('#stream-url').append('<p>Flusso della diretta <strong>da aprire con VLC o <code>ffplay</code>:</strong></p>')
  • - .append('<pre><code>' + stream + '</code></pre>');
  • + .append('<pre><code><a href="' + stream + '">' + stream + '</a></code></pre>');
  • boxStyle('#stream-url', 'rgba(255,255,255,0.5)', 'black');
  • // kill login timeout