In order to enable the rendering of the <object/> element containing the
mediaURI we need, we spoof a SilverLight installation.
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
// @include http://www.rai.tv/*
// ==/UserScript==
//
// @include http://www.rai.tv/*
// ==/UserScript==
//
-// NOTE, for rai.tv to work you need to install a script like:
-// http://git.ao2.it/smooth-dl.git/blob_plain/HEAD:/scripts/SilverSpoof.user.js
},
{
locationRegexp: /^http:\/\/www\.rai\.tv\/.*$/,
},
{
locationRegexp: /^http:\/\/www\.rai\.tv\/.*$/,
+ initCommand: function(site) {
+ unsafeWindow.Silverlight.isInstalled = function(version) {
+ return true;
+ };
+ },
urlContainer: 'Player',
urlRegexp: /mediaUri=(http:\/\/[^,]*)/,
onEvent: { evt: 'DOMNodeInserted', targetElement: 'object' },
urlContainer: 'Player',
urlRegexp: /mediaUri=(http:\/\/[^,]*)/,
onEvent: { evt: 'DOMNodeInserted', targetElement: 'object' },