{"id":3532,"date":"2026-05-19T23:00:01","date_gmt":"2026-05-19T15:00:01","guid":{"rendered":""},"modified":"2026-05-19T23:00:01","modified_gmt":"2026-05-19T15:00:01","slug":"","status":"publish","type":"post","link":"https:\/\/www.souziyuan.top\/index.php\/archives\/3532","title":{"rendered":"Rubick\u5f00\u6e90\u63d2\u4ef6\u5de5\u5177\u7bb1v4.3.4"},"content":{"rendered":"<h3>\u8f6f\u4ef6\u4ecb\u7ecd<\/h3>\n<p>Rubick\u662f\u4e00\u6b3e\u57fa\u4e8eelectron\u5f00\u6e90\u5de5\u5177\u7bb1\uff0c\u514d\u8d39\u96c6\u6210\u4e30\u5bcc\u7684\u63d2\u4ef6\uff0c\u6253\u9020\u6781\u81f4\u684c\u9762\u6548\u7387\u5de5\u5177\u3002Rubick\u4ec5\u4ec5\u5305\u542b\u63d2\u4ef6\u8fd0\u884c\u6240\u9700\u8981\u7684API\uff0c\u672c\u8eab\u4e0d\u5185\u7f6e\u4efb\u4f55\u63d2\u4ef6\uff0c\u53ef\u4ee5\u770b\u6210\u662felectron\u7684\u4e8c\u6b21\u5c01\u88c5\u6846\u67b6\u3002Rubick\u662fDota\u82f1\u96c4\u4e4b\u4e00\uff0c\u6838\u5fc3\u6280\u80fd\u662f\u80fd\u591f\u4f7f\u7528\u5176\u4ed6\u82f1\u96c4\u4f5c\u4e3a\u63d2\u4ef6\u3002\u975e\u5e38\u7b26\u5408\u8fd9\u4e2a\u5de5\u5177\u7684\u8bbe\u8ba1\u7406\u5ff5\uff0c\u6240\u4ee5\u53d6\u540dRubick\u3002<\/p>\n<h3>\u8f6f\u4ef6\u622a\u56fe<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.x6d.com\/uploads\/allimg\/241009\/1728444626621697.png\" title=\"1728444626621697.png\" alt=\"2024-10-09_112931.png\"\/><\/p>\n<h4>\u8f6f\u4ef6\u529f\u80fd<\/h4>\n<p>&nbsp; github.com\/rubickCenter\/rubick<\/p>\n<ol class=\" list-paddingleft-2\" style=\"list-style-type: decimal;\">\n<li>\n<p>\u57fa\u4e8enpm\u5305\u65b9\u5f0f\u7684\u63d2\u4ef6\u7ba1\u7406\uff0c\u5b89\u88c5\u63d2\u4ef6\u5c31\u50cf\u5b89\u88c5npm\u5305\u4e00\u6837\u7b80\u5355\u3002<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u7cfb\u7edf\u63d2\u4ef6\uff0c\u53ea\u8981rubick\u5728\u8fd0\u884c\uff0c\u968f\u65f6\u53ef\u4ee5\u4f7f\u7528\u63d2\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u5168\u5c40\u5feb\u6377\u952e\u8bbe\u7f6e<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u526a\u8d34\u677f\u6587\u4ef6\u641c\u7d22<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u641c\u7d22\u672c\u5730\u5b89\u88c5\u7684\u5e94\u7528\u7a0b\u5e8f\u6216\u9996\u9009\u9879<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301MacOS<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u89c6\u7a97<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301Linux<\/p>\n<\/li>\n<\/ol>\n<div class=\"article-down\" id=\"article-down\">\n<h4>\u4e0b\u8f7d\u5730\u5740<\/h4>\n<div style=\"padding:15px;background:#f5f5f5;border-radius:4px;color:#666;text-align:center;\">\n            \ud83d\udd12 \u5269\u4f59\u5185\u5bb9\u5df2\u9690\u85cf\uff0c\u8bf7<a href=\"javascript:void(0);\" onclick=\"openAeroLoginAndForceRefresh()\" style=\"color:#007bff;text-decoration:underline;cursor:pointer;\">\u70b9\u51fb\u767b\u5f55<\/a>\u540e\u67e5\u770b\u5b8c\u6574\u5185\u5bb9<\/br>(\u5df2\u767b\u5f55\u540e\u8bf7\u5237\u65b0\u9875\u9762)\n        <\/div>\n        <script>\n        function openAeroLoginAndForceRefresh() {\n            \/\/ 1. \u5148\u5524\u8d77\u4e3b\u9898\u7684\u767b\u5f55\u5f39\u7a97\n            document.getElementById(\"login-trigger\").click();\n            \n            \/\/ 2. \u5b9a\u4e49\u767b\u5f55\u6210\u529f\u540e\u7684\u5237\u65b0\u51fd\u6570\uff08\u5e26\u968f\u673a\u53c2\u6570\u5f3a\u5236\u8df3\u8fc7\u7f13\u5b58\uff09\n            function forceRefreshPage() {\n                \/\/ \u6dfb\u52a0\u65f6\u95f4\u6233\u53c2\u6570\uff0c\u5f3a\u5236\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u91cd\u65b0\u52a0\u8f7d\u9875\u9762\uff0c\u8df3\u8fc7\u6240\u6709\u7f13\u5b58\n                window.location.href = window.location.pathname + \"?t=\" + Date.now() + window.location.hash;\n            }\n            \n            \/\/ 3. \u7b2c\u4e00\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cbody\u7684class\u53d8\u5316\uff08\u6807\u51c6\u60c5\u51b5\uff09\n            const classObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    if (mutation.target.classList.contains(\"logged-in\")) {\n                        forceRefreshPage();\n                        classObserver.disconnect();\n                        cookieObserver.disconnect();\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            classObserver.observe(document.body, {\n                attributes: true,\n                attributeFilter: [\"class\"]\n            });\n            \n            \/\/ 4. \u7b2c\u4e8c\u91cd\u68c0\u6d4b\uff1a\u76d1\u542cWordPress\u767b\u5f55cookie\uff08\u6700\u53ef\u9760\uff09\n            let cookieObserver = setInterval(function() {\n                \/\/ \u68c0\u6d4b\u662f\u5426\u5b58\u5728WordPress\u767b\u5f55cookie\n                if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                    forceRefreshPage();\n                    clearInterval(cookieObserver);\n                    classObserver.disconnect();\n                    modalObserver.disconnect();\n                }\n            }, 500); \/\/ \u6bcf500\u6beb\u79d2\u68c0\u6d4b\u4e00\u6b21\n            \n            \/\/ 5. \u7b2c\u4e09\u91cd\u68c0\u6d4b\uff1a\u76d1\u542c\u767b\u5f55\u5f39\u7a97\u5173\u95ed\u4e8b\u4ef6\uff08\u515c\u5e95\uff09\n            const modalObserver = new MutationObserver(function(mutations) {\n                mutations.forEach(function(mutation) {\n                    \/\/ \u68c0\u6d4b\u767b\u5f55\u5f39\u7a97\u662f\u5426\u88ab\u9690\u85cf\n                    const loginModal = document.getElementById(\"login-modal\");\n                    if (loginModal && window.getComputedStyle(loginModal).display === \"none\") {\n                        \/\/ \u5f39\u7a97\u5173\u95ed\u540e\u5ef6\u8fdf1\u79d2\u518d\u68c0\u6d4bcookie\uff0c\u9632\u6b62\u767b\u5f55\u8fd8\u6ca1\u5b8c\u6210\n                        setTimeout(function() {\n                            if (document.cookie.indexOf(\"wordpress_logged_in_\") !== -1) {\n                                forceRefreshPage();\n                            }\n                        }, 1000);\n                        modalObserver.disconnect();\n                    }\n                });\n            });\n            \n            \/\/ \u76d1\u542c\u767b\u5f55\u5f39\u7a97\u7684\u663e\u793a\u72b6\u6001\u53d8\u5316\n            const loginModal = document.getElementById(\"login-modal\");\n            if (loginModal) {\n                modalObserver.observe(loginModal, {\n                    attributes: true,\n                    attributeFilter: [\"style\", \"class\"]\n                });\n            }\n            \n            \/\/ 6. 15\u79d2\u540e\u81ea\u52a8\u505c\u6b62\u6240\u6709\u68c0\u6d4b\uff0c\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f\n            setTimeout(function() {\n                classObserver.disconnect();\n                clearInterval(cookieObserver);\n                modalObserver.disconnect();\n            }, 15000);\n        }\n        <\/script>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6f\u4ef6\u4ecb\u7ecd Rubick\u662f\u4e00\u6b3e\u57fa\u4e8eelectron\u5f00\u6e90\u5de5\u5177\u7bb1\uff0c\u514d\u8d39\u96c6\u6210\u4e30\u5bcc\u7684\u63d2\u4ef6\uff0c\u6253\u9020\u6781\u81f4\u684c\u9762\u6548\u7387\u5de5\u5177\u3002Rubi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-3532","post","type-post","status-publish","format-standard","hentry","category-winruanjian"],"_links":{"self":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/3532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/comments?post=3532"}],"version-history":[{"count":0,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/posts\/3532\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/media?parent=3532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/categories?post=3532"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.souziyuan.top\/index.php\/wp-json\/wp\/v2\/tags?post=3532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}