다시 처음으로
This commit is contained in:
26
content.js
Normal file
26
content.js
Normal 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"
|
||||
};
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user