Skip to content

Instantly share code, notes, and snippets.

@ImMALWARE
Last active July 28, 2023 14:02
Show Gist options
  • Save ImMALWARE/3c841684da12ff82c29b88f835873dca to your computer and use it in GitHub Desktop.
Save ImMALWARE/3c841684da12ff82c29b88f835873dca to your computer and use it in GitHub Desktop.
Нормальный логотип Lolzteam
// ==UserScript==
// @name Нормальный логотип Lolzteam
// @description Нормальный логотип Lolzteam от MALWARE
// @author MALWARE
// @homepage https://t.me/notmalware/
// @match https://zelenka.guru/*
// @match https://lzt.market/*
// @match https://lolz.market/*
// @match https://lolz.guru/*
// @grant GM_addStyle
// @version 1.4
// @license MIT
// @icon https://i.imgur.com/2mCR8fg.png
// @run-at document-start
// ==/UserScript==
var favicons = document.querySelectorAll("link[rel='shortcut icon']");
favicons.forEach(favicon => { favicon.remove(); });
const newFavicon = document.createElement('link');
newFavicon.rel = 'shortcut icon';
newFavicon.type = 'image/png';
newFavicon.href = 'https://i.imgur.com/2mCR8fg.png';
document.getElementsByTagName('head')[0].appendChild(newFavicon);
var css = `#lzt-logo{background-size:100%;margin-top:auto;width:87px;height:44px;float:left;margin-left: -5px;margin-right: -5px; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Слой_2' x='0px' y='0px' viewBox='0 0 90 40' style='enable-background:new 0 0 90 40;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill-rule:evenodd;clip-rule:evenodd;fill:%2323A86D;%7D%0A%3C/style%3E%3Cpath class='st0' d='M49,31V13h15.1l4-4H16v4h17L21,32h-8V9H9v27h59l-4-4H49V31 M26,32h19v-1V13h-7L26,32z'/%3E%3C/svg%3E")}`;
(function() {
'use strict';
if (typeof GM_addStyle != "undefined") {
GM_addStyle(css);
} else if (typeof PRO_addStyle != "undefined") {
PRO_addStyle(css);
} else if (typeof addStyle != "undefined") {
addStyle(css);
} else {
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(css));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node);
} else {
document.documentElement.appendChild(node);
}
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment