谁是股批

"有没有人做一个插件,点开石之家的主页,自动查logs然后显示出来"

目前为 2023-12-18 提交的版本。查看 最新版本

// ==UserScript==
// @name         谁是股批
// @name:en      who-is-browser-gamer
// @namespace    lanyangzhi.github.io
// @version      0.1
// @description  "有没有人做一个插件,点开石之家的主页,自动查logs然后显示出来"
// @description:en ffxiv chinese server only
// @author       Lanyangzhi
// @match        *://ff14risingstones.web.sdo.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=undefined.
// @grant        none
// @license      MIT
// ==/UserScript==


(function() {
    setTimeout(function() {
        const userName = document.querySelector('.ft20.ftw.mr15.cursor').innerText;
        const server = document.querySelector('.ml5:nth-child(2)').innerText;

        var newNode = document.createElement('a');
        newNode.id = 'ff-icon';
        newNode.href = 'https://cn.fflogs.com/character/CN/' + server + '/' + userName;
        newNode.innerHTML = '<img src="https://assets.rpglogs.cn/img/ff/favicon.png" height="26px">';

        var oldNode=document.querySelector(".mt3.flex.alcenter");
        oldNode.parentNode.insertBefore(newNode,oldNode.nextSibling);
    },5000);
})();



QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址