구버전 크롬이라서 PC 로그인 안되는 사람 해결법
이전글 : https://kone.gg/s/feedback/beXUwzX1bmQ5H_o4WCIj4b
나와 동일한 증상이 있어 빡침이 올라오는 사람들이 있을까봐 내 해결법 공유해줌
크롬 118 이전 버전에서 발생하는 레거시 이슈로 파악됬고 해결해서 현재 PC 로그인 완료함
GPT의 도움으로 스크립트로 레거시 API?를 강제로 호출해서 해결하는 방식이라고함
우선 크롬에 Violentmonkey 해당 확장 프로그램 설치
‘+’ 버튼 눌러서 Script 편집기 화면 진입
아래 코드 복사 붙여넣기
이후 Violentmonkey 클릭했을 때, Promise.withResolvers Polyfill 해당 Script가 뜨면 성공
새로고침하면 계속 사라지던 UI 가 다시 반갑게 맞이해줄거임
이거 또 뭐여 UserScript 뒤에 = 이거 2번 입력해야하는데 노래지고 사라짐
// ==UserScript=
// @name Promise.withResolvers Polyfill
// @namespace local.polyfill
// @version 1.0
// @description Fix Promise.withResolvers on old Chrome
// @match https://kone.gg/*
// @run-at document-start
// @grant none
// ==/UserScript=
(function () {
'use strict';
if (typeof Promise.withResolvers !== 'function') {
Promise.withResolvers = function () {
let resolve;
let reject;
const promise = new Promise(function (res, rej) {
resolve = res;
reject = rej;
});
return {
promise: promise,
resolve: resolve,
reject: reject
};
};
}
console.log('[Polyfill] Promise.withResolvers loaded');
})();
s/feedback
• 269 subscribers- 1. 주제 이외 게시물