Enter semi dead surviv.io by using HTTP. Needs browser settings adjusted (see info).

allows to bypass missing certificate problem by changing WSS to WS. need to enable Mixed content in browser settings

目前為 2023-04-03 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Enter semi dead surviv.io by using HTTP. Needs browser settings adjusted (see info).
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  allows to bypass missing certificate problem by changing WSS to WS. need to enable Mixed content in browser settings
// @author       garlic
// @match        https://surviv.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=surviv.io
// @grant        none
// @license      MIT
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    {
        window.WebSocket=class WebSocket extends window.WebSocket {
            constructor(e) {
                var url = new URL(e);
                url.port='';
                url.protocol='ws';
                super(url.toString());
                this.onerror = function(z) {
                    console.warn(z); /* maybe it's due to Mixed content ban, should explain to user */
                    if(!e.includes("team"))
                        console.prompt("This error might be because need to enable security settings (Enter semi dead surviv.io by using HTTP userscript Tampermonkey)");
                }
            }
        }
    }

})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址