KP Logo Fix

fix

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         KP Logo Fix
// @namespace    bober
// @version      1.0
// @description  fix
// @author       lenchik-lox
// @include      *://*.kinopoisk.*/*
// @icon         https://st.kp.yandex.net/public/img/favicons/favicon-57.png
// @grant        none
// @updateUrl    https://github.com/lenchik-lox/kp-logo-fix/raw/master/kp-logo-fix.user.js
// @downloadUrl  https://github.com/lenchik-lox/kp-logo-fix/raw/master/kp-logo-fix.user.js
// @supportUrl   https://github.com/lenchik-lox/kp-logo-fix/issues
// ==/UserScript==

(function() {
    'use strict';
    setInterval(()=>{document.querySelector('.kinopoisk-header-logo__img').src = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='15' viewBox='0 0 120 15'%3E %3Cpath fill='%23FFF' fill-rule='evenodd' d='M5.762 9.016H4.704v5.748H0V0h4.704v5.374H5.86L8.447 0h4.782L9.897 6.91l3.841 7.854H8.564L5.762 9.016zm16.05.354h-.274l-2.978 2.618v2.776h-4.508V2.953h4.508v4.449h.391l2.862-2.52v-1.93h4.507v11.812h-4.507V9.37zm13.641 1.22h-3.057v4.174h-4.508V2.953h4.508v4.016h3.057V2.953h4.508v11.81h-4.508v-4.172zm11.955-7.854c.81 0 1.561.125 2.254.374.692.25 1.29.63 1.793 1.142.503.512.898 1.152 1.186 1.92.287.767.431 1.663.431 2.686 0 1.037-.144 1.94-.431 2.707-.288.768-.683 1.404-1.186 1.91a4.794 4.794 0 0 1-1.783 1.131 6.463 6.463 0 0 1-2.225.374h-.607a6.896 6.896 0 0 1-2.313-.374 4.843 4.843 0 0 1-1.822-1.132c-.51-.505-.908-1.141-1.196-1.909-.287-.768-.431-1.67-.431-2.707 0-1.023.144-1.919.431-2.687.288-.767.683-1.407 1.186-1.919a4.722 4.722 0 0 1 1.793-1.142 6.666 6.666 0 0 1 2.273-.374h.647zm-.255 8.465c.497 0 .899-.2 1.206-.6.307-.4.46-.982.46-1.743 0-.76-.153-1.342-.46-1.742-.307-.4-.71-.6-1.206-.6h-.156c-.523 0-.935.2-1.235.6-.3.4-.45.981-.45 1.742s.15 1.342.45 1.742c.3.4.712.6 1.235.6h.156zM53.993 0h12.543v14.764h-4.704V3.839h-3.135v10.925h-4.704V0zm19.794 2.736c.81 0 1.562.125 2.254.374.693.25 1.29.63 1.793 1.142.503.512.899 1.152 1.186 1.92.288.767.431 1.663.431 2.686 0 1.037-.143 1.94-.43 2.707-.288.768-.684 1.404-1.187 1.91a4.794 4.794 0 0 1-1.783 1.131 6.463 6.463 0 0 1-2.224.374h-.608a6.896 6.896 0 0 1-2.313-.374 4.843 4.843 0 0 1-1.822-1.132c-.51-.505-.908-1.141-1.196-1.909-.287-.768-.43-1.67-.43-2.707 0-1.023.143-1.919.43-2.687.288-.767.683-1.407 1.186-1.919a4.722 4.722 0 0 1 1.793-1.142 6.666 6.666 0 0 1 2.274-.374h.646zm-.254 8.465c.496 0 .898-.2 1.205-.6.307-.4.46-.982.46-1.743 0-.76-.153-1.342-.46-1.742-.307-.4-.709-.6-1.205-.6h-.157c-.523 0-.934.2-1.235.6-.3.4-.45.981-.45 1.742s.15 1.342.45 1.742c.3.4.712.6 1.235.6h.157zm14.796-1.83h-.274l-2.98 2.617v2.776h-4.507V2.953h4.508v4.449h.392l2.861-2.52v-1.93h4.508v11.812h-4.508V9.37zm17.697.098c-.039.97-.209 1.804-.51 2.5-.3.695-.698 1.27-1.195 1.722a4.609 4.609 0 0 1-1.744.994 7.205 7.205 0 0 1-2.175.315h-.608c-.836 0-1.61-.128-2.322-.384a4.963 4.963 0 0 1-1.842-1.151c-.516-.512-.918-1.152-1.206-1.92-.287-.767-.424-1.663-.411-2.687.013-1.023.163-1.919.45-2.687.288-.767.683-1.407 1.186-1.919A4.825 4.825 0 0 1 97.442 3.1a6.511 6.511 0 0 1 2.274-.383h.647c.77 0 1.492.108 2.165.324.673.217 1.261.548 1.764.994.503.447.908 1.001 1.215 1.664.307.663.48 1.434.52 2.313h-4.293c-.065-.499-.245-.873-.539-1.122-.293-.25-.656-.374-1.087-.374h-.177c-.51 0-.914.2-1.215.6-.3.4-.45.981-.45 1.742s.15 1.342.45 1.742c.3.4.706.6 1.215.6h.177c.457 0 .836-.147 1.136-.442.301-.295.47-.725.51-1.29h4.272zm6.41.846h-.824v4.449h-4.508V2.953h4.508v4.134h.843l2.273-4.134h4.684l-3.018 5.492L120 14.764h-5.017l-2.548-4.449z'/%3E %3C/svg%3E`
                    ;
    document.querySelectorAll("link[rel~='icon']").forEach((el)=>{
        el.remove()//el.href = "https://st.kp.yandex.net/public/img/favicons/favicon-57.png"
    })
    document.head.append((()=>{let el = document.createElement('link'); el.rel = "icon"; el.href = "https://st.kp.yandex.net/public/img/favicons/favicon-57.png"; return el})())
                     },500);
})();