Скрипт для добавления иконки на страницу PerfectMoney
Надоело мне что у PefrectMoney нет иконки. Прикрепленная вкладка с ним выглядит уныло. Решил это исправить. И поделиться со всеми желающими.
Требуется: Бразуер Mozilla Firefox и аддон GreaseMonkey.
Копируете код ниже, в Add-ons Manager во вкладке User Scripts нажимаете вверху New User Script и выбираете "Use Scripts From Clipboard", сохраняете, и вуаля - начиная со следующей загрузки сайта иконка появилась!
Код:
// ==UserScript==
// @name PM favicon
// @author AVANdronov (src by tfr)
// @namespace AVAndronov
// @include https://perfectmoney.is*
// @version 1.0
// @grant none
// ==/UserScript==x
// *** Einstellungen / Settings ***
// * Favicon URL *
var favicurl = "data:image/x-icon;base64,AAABAAEAEBAAAAEACABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAO4AAADvAAEB7gABAe8AAgLuAAIC7wADA+8ABATvAAUF7gAFBe8ABgbvAAYG8AAHB+8ACAjvAAgI8AAJCe4ACQnvAAkJ8AAKCvAACwvwAAwM7gAMDPAADQ3wAA4O8AAPD/AAEBDwABER8AATE/AAFBTwABUV8AAWFvAAGhrxABwc8QAdHfAAHR3xAB8f8AAgIPEAIyPvACQk8gAnJ/AAKCjyACkp8QArK/AAKyvyACws8gAtLfAALS3yADEx8QAxMfIAMjLxADQ08gA2NvIAODjxADk58gA5OfMAOjryADw88wA+PvEAQUHxAEJC8QBFRfMASEjyAElJ8gBLS/IATU3zAE5O9ABQUPMAUFD0AFRU8wBWVvMAW1v1AF5e9ABgYPUAYmL1AGRk9QBkZPYAZmb2AGlp9gBra/YAbGz2AG1t9gBubvYAb2/2AHZ29gB4ePYAeXn3AHt79gB8fPcAfX33AIGB9gCEhPcAhob3AIiI+ACLi/gAjo74AJGR+ACTk/cAmZn4AJqa+QCcnPkAnZ35AJ6e+ACiovkAo6P4AKOj+QCmpvoAp6f5AKur+gCurvkAr6/6ALKy+QCysvoAs7P6ALW1+QC2tvoAuLj6ALy8+wDKyvs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E6e3t7e3t4OwgFBwkHAxBEe3t7e3t7e3toRTc0NUdse3t7e///AAD4DwAA8AcAAOADAADAAQAAgAAAAIAAAACAAAAAgAAAAIAAAACAAAAAgAAAAMABAADAAwAA4AcAAPgPAAA=";
// * Favicon-Dateityp / Favicon file type *
var favictyp = "image/x-icon";
// * Favicon ueberschreiben, falls vorhanden / Overwrite favicon, if one is set *
var overwrite = true;
// *** Ende der Einstellungen / End of settings ***
var iconset = false;
for (var i = 0; i < window.document.getElementsByTagName('link').length; i++) {
if (window.document.getElementsByTagName('link')[i].rel == "icon" || window.document.getElementsByTagName('link')[i].rel == "shortcut icon") {
iconset = true;
if (overwrite) {
window.document.getElementsByTagName('link')[i].parentNode.removeChild(window.document.getElementsByTagName('link')[i]);
iconset = false;
}
}
}
if (!iconset) {
var favicon = window.document.createElement('link');
favicon.rel = "shortcut icon";
favicon.type = favictyp;
favicon.href = favicurl;
window.document.getElementsByTagName('head')[0].appendChild(favicon);
}
Ссылка на pastebin:
https://pastebin.com/ws5d7Yqw