2012-09-26, 19:00
I'm looking for a way to execute some javascript code and use the results, I have a site who is getting pretty crazy in protecting their links and seem to change their code daily
Here's a snip of what they look like now, I'm trying to get the final link that written out in the document.write()
The variable names are dynamic, and they have changed this code many times, so scraping is no longer an option
So I'm looking for a way to execute this code and it doesn't appear that XBMC has any support for javascript such as PyQT so I started looking for online resources
There are quite a few good javascript editors online, I can paste this code in to sites such as jsbin and jsfiddle and get my results, but I'm struggling to find a way where I can make use of these sites via an addon.. has anyone attempted?
Better yet is there a similar site that has an api where I can send in code and fetch results? jsfiddle has an api but is limited to just basics
Here's a snip of what they look like now, I'm trying to get the final link that written out in the document.write()
Code:
var zigala = '%25%33%34';
zigala = '%25%33%37';
if (typeof (swidth) == 'undefined') {
swidth = "600";
}
var bzxcb3 = unescape(zigala);
function fwaza(str) {
if (!str) {return '';}
var gambastr = '';
for (i = str.length - 1; i >= 0; i--) {gambastr += str.charAt(i);}
return gambastr;
}
var qakvca = 42 / unescape(bzxcb3);
var cqnrcvk = 'UdefVbxMWY4MDI1NzI2ODM6ZjU3NzVjNWQ1NjJlMGEzNWJmNzI2NzlkZTNiYjFkMjk';
if (typeof (sheight) == 'undefined') {
sheight = "400";
}
var swwujg = 'xMWY4MDI1NzI2ODM6ZjU3NzVjNWQ1NjJlMGEzNWJmNzI2NzlkZTNiYjFkMjk_';
var mdamtsji = "/E";
var asdfadsf = "/x";
var mmsw = "atch";
cqnrcvk = 'MTBkNDEyMjk2YjgzOmQ2NjU2OTZlOmIyOWUwYzc2MWI4YjdmZTNlZjg0YjEzNTc0M2';
cqnrcvkj = cqnrcvk.substring(qakvca);
var obzeov = "2M0cTNzEjY0gjZlNTZmdjY4IWM2czYwUWOyImOlZTO2UjN2QmOzgjY2kjMyEDNkBTM";
document.write('<ifr' + 'ame width="' + swidth + '" height="' + sheight + '" scrolling="no" frameborder="0" allowtransparency="true" src="http://sawlive.tv/embed/watch' + '/' + cqnrcvk + mdamtsji + swwujg + '"></iframe>');
The variable names are dynamic, and they have changed this code many times, so scraping is no longer an option
So I'm looking for a way to execute this code and it doesn't appear that XBMC has any support for javascript such as PyQT so I started looking for online resources
There are quite a few good javascript editors online, I can paste this code in to sites such as jsbin and jsfiddle and get my results, but I'm struggling to find a way where I can make use of these sites via an addon.. has anyone attempted?
Better yet is there a similar site that has an api where I can send in code and fetch results? jsfiddle has an api but is limited to just basics