NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name LostFilm // @author Igorok107 // @namespace Igorok107 // @description Добавляет кнопки скачать к ленте сериалов. // @version 0.1.1 // @updateURL https://openuserjs.org/meta/igorok107/LostFilm.meta.js // @downloadURL https://openuserjs.org/install/igorok107/LostFilm.user.js // @match *://*.lostfilm.tv/* // @grant none // ==/UserScript== (function() { 'use strict'; $("a.new-movie > div.title").css("padding-left","32px"); var sn,ep,ct,match; $.each($("a.new-movie"),function(i,item){ match = $(item).attr("href").match(/season_(\d+)\/episode_(\d+)/i); sn = match[1]; ep = match[2]; ct = $(item).find("img").attr("src").match(/Images\/(\d+)\/Posters/i)[1]; $(item).append("<a></a>"); $(item).find("a").attr("href","javascript:PlayEpisode('"+ct+"','"+sn+"','"+ep+"')"); $(item).find("a").css("position","absolute"); $(item).find("a").css("left","5px"); $(item).find("a").css("bottom","5px"); $(item).find("a").css("width","20px"); $(item).find("a").css("height","20px"); $(item).find("a").css("border-radius","4px"); $(item).find("a").css("opacity","0.85"); $(item).find("a").css("background","url(/vision/external-link-btn.png) repeat scroll center center"); }); })();