기존 확장 추가

This commit is contained in:
2026-05-28 01:14:31 +09:00
commit 6c0e103aeb
5 changed files with 196 additions and 0 deletions

26
content.js Normal file
View File

@@ -0,0 +1,26 @@
// 치지직 플레이어가 OS를 검사할 때 Mac으로 인식하도록 속임
Object.defineProperty(navigator, 'userAgent', {
get: function () {
return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36';
}
});
Object.defineProperty(navigator, 'platform', {
get: function () {
return 'MacIntel';
}
});
Object.defineProperty(navigator, 'userAgentData', {
get: function () {
return {
brands: [
{ brand: "Chromium", version: "122" },
{ brand: "Google Chrome", version: "122" },
{ brand: "Not-A.Brand", version: "24" }
],
mobile: false,
platform: "macOS"
};
}
});