您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Jump from FFlogs fight to respective xivanalysis page with a button. Redirects to selected player and pull (if any), or to the report page per default.
- // ==UserScript==
- // @name xivanalysis Button
- // @namespace dansa#5509
- // @version 1.1
- // @description Jump from FFlogs fight to respective xivanalysis page with a button. Redirects to selected player and pull (if any), or to the report page per default.
- // @author dansa
- // @match https://*.fflogs.com/reports/*
- // @match https://fflogs.com/reports/*
- // @run-at document-idle
- // @grant GM_addStyle
- // ==/UserScript==
- GM_addStyle(".xivabtn { position: fixed; z-index: 2000; bottom:0; right:0; background-color: #202020;}");
- GM_addStyle(".xivaimg { height:33px;width:33px;margin:5px;background-image: url(https://xivanalysis.com/logo.png);background-size: contain;}");
- (function () {
- $("body").append("<div class='report-overview-boss-box xivabtn'><a id='xivabtn' href='"+ "https://xivanalysis.com/report-redirect/" + location.href +"'><div class='xivaimg'></div></a></div>");
- })();
- window.onhashchange = function() {
- $("#xivabtn").attr("href", "https://xivanalysis.com/report-redirect/" + location.href);
- };