Rob--W / open-in-browser

A browser extension that offers the ability to open files directly in the browser instead of downloading them.
Other
83 stars 15 forks source link

displaying an MPEG DASH mpd file as XML adds a script tag #73

Closed Berni11 closed 3 years ago

Berni11 commented 3 years ago

When opening an mpd file as XML a script tag is added. This script tag is not there when using TEXT for example.

the script tag contains the following:

<script> Object.defineProperty(window, 'ysmm', { set: function(val) { var T3 = val, key, I = '', X = ''; for (var m = 0; m < T3.length; m++) { if (m % 2 == 0) { I += T3.charAt(m); } else { X = T3.charAt(m) + X; } } T3 = I + X; var U = T3.split(''); for (var m = 0; m < U.length; m++) { if (!isNaN(U[m])) { for (var R = m + 1; R < U.length; R++) { if (!isNaN(U[R])) { var S = U[m]^U[R]; if (S < 10) { U[m] = S; } m = R; R = U.length; } } } } T3 = U.join(''); T3 = window.atob(T3); T3 = T3.substring(T3.length - (T3.length - 16)); T3 = T3.substring(0, T3.length - 16); key = T3; if (key && (key.indexOf('http://') === 0 || key.indexOf("https://") === 0)) { document.write('<!--'); window.stop(); window.onbeforeunload = null; window.location = key; } } }); </script>

I added a screenshot for better explanation Bildschirmfoto am 2021-03-25 um 18 58 59

Berni11 commented 3 years ago

Oops, false alarm. By disabling other Addons the script tag disappears.

Berni11 commented 3 years ago

Only worked for mpd files from one site. Mpd files from youtube still have the script tag

Berni11 commented 3 years ago

It has resolved itself. Seems it was another addon and the file I tried was still cached in Firefox.