Tweak also the style to avoid overlapping with other page elements.
Signed-off-by: Antonio Ospite <ospite@studenti.unina.it>
{
locationRegexp: /^http:\/\/video\.repubblica\.it\/.*$/,
fileElem: 'contA',
{
locationRegexp: /^http:\/\/video\.repubblica\.it\/.*$/,
fileElem: 'contA',
- fileRegexp: /'pcUrl', '(http:\/\/[^']*)'/,
+ fileRegexp: /'pcUrl', '((http|mms):\/\/[^']*)'/,
linkDest: 'contA',
},
{
locationRegexp: /^http:\/\/tv\.repubblica\.it\/.*$/,
fileElem: 'boxPlayer',
linkDest: 'contA',
},
{
locationRegexp: /^http:\/\/tv\.repubblica\.it\/.*$/,
fileElem: 'boxPlayer',
- fileRegexp: /'pcUrl', '(http:\/\/[^']*)'/,
+ fileRegexp: /'pcUrl', '((http|mms):\/\/[^']*)'/,
linkDest: 'box_embed',
},
{
locationRegexp: /^http:\/\/trovacinema\.repubblica\.it\/.*$/,
fileElem: 'col-center',
linkDest: 'box_embed',
},
{
locationRegexp: /^http:\/\/trovacinema\.repubblica\.it\/.*$/,
fileElem: 'col-center',
- fileRegexp: /'flvUrl', '(http:\/\/[^']*)'/,
+ fileRegexp: /'flvUrl', '((http|mms):\/\/[^']*)'/,
linkDest: 'col-center',
},
{
locationRegexp: /^http:\/\/www\.kataweb\.it\/tvzap\/.*$/,
fileElem: 'tvzap_video',
linkDest: 'col-center',
},
{
locationRegexp: /^http:\/\/www\.kataweb\.it\/tvzap\/.*$/,
fileElem: 'tvzap_video',
- fileRegexp: /'pcUrl', '(http:\/\/[^']*)'/,
+ fileRegexp: /'pcUrl', '((http|mms):\/\/[^']*)'/,
linkDest: 'playerCont',
},
];
linkDest: 'playerCont',
},
];
}
var download_link = document.createElement('a');
}
var download_link = document.createElement('a');
- download_link.textContent = 'Direct Download';
+ download_link.textContent = 'Direct Link';
download_link.setAttribute('href', fileURL);
var style = 'background-color: white; color: blue;';
style += ' border: 2px solid red;'
download_link.setAttribute('href', fileURL);
var style = 'background-color: white; color: blue;';
style += ' border: 2px solid red;'
- style += ' float: left; font-size: large;';
- style += ' padding: .5em; margin-left: 30px; margin-bottom: 1em;'
+ style += ' float: right; font-size: large;';
+ style += ' padding: .5em; margin: 1em;'
download_link.setAttribute('style', style);
links.insertBefore(download_link, links.firstChild);
download_link.setAttribute('style', style);
links.insertBefore(download_link, links.firstChild);