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-15 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Enter semi dead surviv.io by using HTTP. Needs browser settings adjusted (see info).
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.12
  5. // @description allows to bypass missing certificate problem by changing WSS to WS. need to enable Mixed content in browser settings
  6. // @author garlic
  7. // @match https://surviv.io/
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=surviv.io
  9. // @grant none
  10. // @license MIT
  11. // @run-at document-start
  12. // ==/UserScript==
  13.  
  14. (function() {
  15. 'use strict';
  16. {
  17.  
  18. 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;
  19.  
  20. window.WebSocket=class WebSocket extends window.WebSocket {
  21. constructor(e) {
  22. var url = new URL(e);
  23. url.port='';
  24. url.protocol='ws';
  25. super(url.toString());
  26. this.onerror = function(z) {
  27. console.warn(z); /* maybe it's due to Mixed content ban, should explain to user */
  28. if(!e.includes("team"))
  29. 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','')}
  30. }
  31. }
  32. }
  33. }
  34.  
  35. })();