1

Update 'yohoho-watch.user.js'

This commit is contained in:
lzrdblzzrd
2022-10-13 15:33:06 +03:00
parent 55fc355145
commit 5a7811d499

View File

@@ -2,18 +2,17 @@
// @name Yohoho Watch // @name Yohoho Watch
// @namespace https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch // @namespace https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch
// @author lzrdblzzrd // @author lzrdblzzrd
// @description Watch films from Kinopoisk.ru on Yohoho for free! // @description Смотрите фильмы с Kinopoisk.ru на Yohoho бесплатно!
// @downloadURL https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.user.js // @downloadURL https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.user.js
// @updateURL https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.user.js // @updateURL https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.user.js
// @icon https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.png // @icon https://gitea.lzrdblzzrd.xyz/lzrdblzzrd/Yohoho-Watch/raw/branch/master/yohoho-watch.png
// @version 1.0 // @version 1.1
// @match *://www.kinopoisk.ru/* // @match *://www.kinopoisk.ru/*
// @grant none // @run-at document-start
// @run-at document-end
// ==/UserScript== // ==/UserScript==
const BANNER_IMAGE = `<?xml version="1.0" encoding="utf-8"?> const BANNER_IMAGE = `<?xml version="1.0" encoding="utf-8"?>
<svg version="1.1" id="Слой_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 128 512" style="enable-background:new 0 0 128 512;" xml:space="preserve"> viewBox="0 0 128 512" style="enable-background:new 0 0 128 512;" xml:space="preserve">
<style type="text/css"> <style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:url(#Banner_00000055666303498189408720000007536872097726533817_);} .st0{fill-rule:evenodd;clip-rule:evenodd;fill:url(#Banner_00000055666303498189408720000007536872097726533817_);}
@@ -63,6 +62,7 @@ function mountBanner() {
banner.style.position = 'fixed'; banner.style.position = 'fixed';
banner.style.zIndex = '9000'; banner.style.zIndex = '9000';
banner.style.transition = 'top 0.2s ease'; banner.style.transition = 'top 0.2s ease';
banner.title = 'Смотреть на Yohoho'
banner.addEventListener('click', () => openPlayer()); banner.addEventListener('click', () => openPlayer());
banner.addEventListener('mouseover', () => { banner.style.top = '-24px' }); banner.addEventListener('mouseover', () => { banner.style.top = '-24px' });