Steam Community - Enhanced Steam Dropdown Mover

Moves the Enhanced Steam dropdown into the steam profile dropdown (and simultaneously makes it compatible with custom Steam skins).

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Steam Community - Enhanced Steam Dropdown Mover
// @namespace    Royalgamer06
// @version      0.1
// @description  Moves the Enhanced Steam dropdown into the steam profile dropdown (and simultaneously makes it compatible with custom Steam skins).
// @author       Royalgamer06
// @include      /https?\:\/\/(steamcommunity|store\.steampowered)\.com.*/
// @run-at       document-start
// @grant        none
// ==/UserScript==
var checker = setInterval(function() {
    if (document.getElementById("es_pulldown")) {
        clearInterval(checker);
        var c = document.querySelector("#es_popup > .popup_menu").children;
        while (c.length > 0) {
            document.querySelector("#account_dropdown > .popup_menu").appendChild(c[0]);
        }
        document.getElementById("es_pulldown").parentElement.removeChild(document.getElementById("es_pulldown"));
        document.getElementById("es_popup").parentElement.removeChild(document.getElementById("es_popup"));
    }
}, 1);