GC - Active Icon

A link to change your active pet

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         GC - Active Icon
// @author       Mousekat
// @namespace    https://greasyfork.org/users/748951
// @version      1.0
// @description  A link to change your active pet
// @include      *grundos.cafe/*
// @exclude      https://www.grundos.cafe/~*
// @exclude      https://grundos.cafe/process/
// @exclude      https://grundos.cafe/island/training/complete/*
// @exclude      https://www.grundos.cafe/userlookup/*
// @exclude      https://www.grundos.cafe/gallery/view/?username=*
// @exclude      https://www.grundos.cafe/petlookup/?pet_name=*
// ==/UserScript==

//change this to you prets name, capitalization is important
var petname = "Britney"

//change this to any emoji you would like
var icon = "🌷"

//to change the location chage the values for top and left below


//code
var link ="<a href='https://www.grundos.cafe/setactivepet/?pet_name=" + petname + "'>" + icon + "</a>"

if (window.location.href.indexOf("grundos.cafe") > -1) {
var PPNContainer = document.createElement("div");
    PPNContainer.id = "PPNContainer";
    document.body.appendChild(PPNContainer);
    PPNContainer.innerHTML ="<p style='font-size: 13px'>" + link + "</style>"
    PPNContainer.style = `
    position:absolute;
    top:-7;
    left:732;
    background:transparent;
    padding-top:1px;
    padding-bottom:1px;
    font-size:15px;
    color:#00000;
    text-align:left;
`
}