Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function() {
- function _x(STR_XPATH) {
- var xresult = document.evaluate(STR_XPATH, document, null, XPathResult.ANY_TYPE, null);
- var xnodes = [];
- var xres;
- while (xres = xresult.iterateNext()) {
- xnodes.push(xres);
- }
- return xnodes;
- }
- flowplayer_play = function(e, d, f) {
- var u = "http://animeaddicts.hu" + e.substring(1);
- $(this).data("trackHref").attr("target", "_blank");
- $(this).data("trackHref").attr("href", u);
- $(this).data("trackHrefBase").attr("target", "_blank");
- $(this).data("trackHrefBase").attr("href", u);
- $(this).data("trackHref").onclick = function() { };
- };
- var iter = function(e, i) {
- var hrefList = $(this).find('a');
- $(hrefList[0]).onclick = function() {};
- var href = $(hrefList[2]);
- $(window).data("trackHref", href);
- $(window).data("trackHrefBase", $(hrefList[0]));
- href.trigger("click");
- }
- $(_x('//*[@id="right"]/div[4]/table/tbody/tr/td/div/div[1]/div[contains(@id,\"track\")]')).each(iter);
- $(_x('//*[@id="right"]/div[4]/table/tbody/tr/td/div/div[2]/div[contains(@id,\"track\")]')).each(iter);
- alert("Kész");
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement