Access Skeletrix

Overrides the user agent to mimic an iPod so you can access the Skeletrix website

目前為 2025-02-09 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Access Skeletrix
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Overrides the user agent to mimic an iPod so you can access the Skeletrix website
// @author       claiomhor
// @match        http://143.244.202.221/*
// @grant        none
// @run-at       document-start
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';
    
    const newUserAgent = "Mozilla/5.0 (iPod; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1";
    
    Object.defineProperty(navigator, 'userAgent', {
        get: function () {
            return newUserAgent;
        }
    });
    
})();