您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Show FACEIT links on Steam profile
当前为
// ==UserScript== // @name Steam FACEIT links // @namespace http://tampermonkey.net/ // @version 1.1 // @description Show FACEIT links on Steam profile // @author ultraviewer // @license MIT // @match https://steamcommunity.com/id/* // @match https://steamcommunity.com/profiles/* // @grant none // @run-at document-idle // ==/UserScript== (function() { 'use strict'; try { document.querySelectorAll('.profile_item_links')[0].innerHTML += '<div id="faceit-links"></div><div style="clear: left;"></div>'; } catch (e) { // private profile document.querySelectorAll('.profile_rightcol')[0].innerHTML += '<div id="faceit-links"></div><div style="clear: left;"></div>'; } let id = window.g_rgProfileData.steamid; let links = [ {title: 'FACEIT', url: `https://www.faceit.com/en/search/overview/${id}`}, {title: 'FaceItFinder', url: `https://faceitfinder.com/stats/${id}`}, {title: 'CSStats.gg', url: `https://csstats.gg/player/${id}/faceit#/matches`} ]; for (let l of links) { document.getElementById('faceit-links').innerHTML += `<div class="profile_count_link"><a href="${l.url}">${l.title}<span class="profile_count_link_total"></span></a></div>`; } })();