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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Enter semi dead surviv.io by using HTTP. Needs browser settings adjusted (see info).
// @namespace    http://tampermonkey.net/
// @version      0.14
// @description  allows to bypass missing certificate problem by changing WSS to WS. need to enable Mixed content in browser settings
// @author       garlic
// @match        *://surviv.io/
// @match        *://*.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';
    {
        function disableLoginPrompt() {
            Object.defineProperty(window["modal-notification"],"style",{   get: function() { return {} },   set: function() {} }); Object.defineProperty(window["modal-create-account"],"style",{   get: function() { return {} },   set: function() {} }); Object.defineProperty(window["modal-account-incentive"],"style",{   get: function() { return {} },   set: function() { "strangely this has no effect"} }); Object.defineProperty(document, "cookie", {     configurable: true,     get: function() {         return "ftue-step=12";     },     set: function(e) {} });   History.prototype.replaceState = function() {}; 0;
        }

        window.addEventListener("DOMContentLoaded", disableLoginPrompt);

        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"))
                        if(console.confirm("This error might be because need to enable security settings (Enter semi dead surviv.io by using HTTP userscript Tampermonkey). Choose OK to read link with explanation")) { window.open('https://greasyfork.org/en/scripts/463163-enter-semi-dead-surviv-io-by-using-http-needs-browser-settings-adjusted-see-info','')}
                }
            }
        }
    }

})();