Some updates!

This commit is contained in:
QuiteAFancyEmerald 2021-11-29 22:02:24 -08:00
parent 47a843bbb8
commit df4ce2ae68
No known key found for this signature in database
GPG key ID: 14E10C9F7DC07318
1412 changed files with 188615 additions and 149532 deletions

1
.gitignore vendored
View file

@ -4,3 +4,4 @@ node_modules
.gitattributes
.well-known
package-lock.json
/views/archive/gfiles/rarch/roms

14
.gitmodules vendored
View file

@ -26,9 +26,11 @@
path = views/archive/g/adarkroom
url = https://github.com/doublespeakgames/adarkroom
[submodule "views/archive/bunker"]
path = views/archive/bunker
url = https://github.com/stewpidtnlvr/The-Bunker-Offline
[submodule "src/Corrosion"]
path = src/Corrosion
url = https://github.com/titaniumnetwork-dev/Corrosion/
[submodule "views/archive/g/trimps"]
path = views/archive/g/trimps
url = https://github.com/Trimps/Trimps.github.io
[submodule "views/archive/g/zork1"]
path = views/archive/g/zork1
url = https://github.com/jessicalevine/Adventure.js

View file

@ -1,2 +0,0 @@
tasks:
- init: npm install

View file

@ -1,7 +1,7 @@
{
"name": "Holy Unblocker",
"description": "A website that can be used to bypass web filters; both extension and firewall. Corrosion Proxy hosted locally. (Can be used as a template.)",
"description": "A website that can be used to bypass web filters; both extension and firewall. Alloy Proxy hosted locally. (Can be used as a template.)",
"repository": "https://github.com/QuiteAFancyEmerald/HolyUnblockerPublic/",
"logo": "https://github.com/QuiteAFancyEmerald/HolyUnblockerPublic/blob/master/views/assets/img/i.png?raw=true",
"keywords": ["node", "proxy", "unblocker", "webproxy", "games", "holyunblocker", "corrosion"]
"keywords": ["node", "proxy", "unblocker", "webproxy", "games", "holyunblocker", "alloy"]
}

View file

@ -1,18 +1,18 @@
/* -----------------------------------------------
* Authors: QuiteAFancyEmerald, BinBashBanana (OlyB), YÖCTDÖNALD'S
* Additional help from Divide and SexyDuceDuce
* MIT license: http://opensource.org/licenses/MIT
* Authors: QuiteAFancyEmerald, BinBashBanana (OlyB), YÖCTDÖNALD'S and the lime
* Additional help from Divide and SexyDuceDuce >:D test aaaa
* ----------------------------------------------- */
const
corrosion = require('./src/Corrosion'),
path = require('path'),
config = require('./config.json'),
fs = require('fs'),
http = require('http'),
express = require('express'),
app = express(),
port = process.env.PORT || config.port,
server = http.createServer(app);
const fs = require('fs');
const path = require('path');
const http = require('http');
const https = require('https');
const express = require('express');
const corrosion = require('corrosion');
const config = require('./config.json');
const insert = require('./randomization.json');
const app = express();
const port = process.env.PORT || config.port;
const server = config.ssl ? https.createServer({ key: fs.readFileSync('./ssl/ssl.key'), cert: fs.readFileSync('./ssl/ssl.cert') }, app) : http.createServer(app);
btoa = (str) => {
return new Buffer.from(str).toString('base64');
@ -23,8 +23,8 @@ atob = (str) => {
}
const text404 = fs.readFileSync(path.normalize(__dirname + '/views/404.html'), 'utf8'),
siteIndex = 'index.html',
pages = {
'index': 'index.html',
/* Main */
'in': 'info.html',
'faq': 'faq.html',
@ -53,79 +53,71 @@ const text404 = fs.readFileSync(path.normalize(__dirname + '/views/404.html'), '
/* Ruffle and Webretro */
'fg': 'archive/gfiles/flash/index.html',
'eg': 'archive/gfiles/rarch/index.html'
},
fileMod = [
"/views/assets/css/styles.min.css",
],
cookingInserts = [
"Random sentence one filled with certain keywords.",
"Random sentence two filled with certain keywords."
],
splashtext = [
'Th<wbr>is is si<wbr>mp<wbr>ly a pu<wbr>bl<wbr>ic dem<wbr>o for Ho<wbr>ly Unb<wbr>locke<wbr>r. Certain functions may not work properly. Jo<wbr>in the <a id="tnlink" target="_blank">T<wbr>N Disc<wbr>ord</a> for official site lin<wbr>ks'
],
vegetables = ['Cooking1', 'Cooking2'],
charRandom = ['&#173;', '&#8203;'];
};
const cookingInserts = insert.content;
const vegetables = insert.keywords;
const charRandom = insert.chars;
function randomListItem(lis) {
return lis[Math.floor(Math.random() * lis.length)];
}
// The inline function returns are necessary to prevent all replaced things from being the same
function redditFix(str) {
return str.replace(/Ch&#173;a&#173;tbo&#173;x/g, 'Re&#173;dd&#173;it');
}
function insertCharset(str) {
return str.replace(/&#173;|&#8203;|<wbr>/g, function() { return randomListItem(charRandom); });
}
function insertSplash(str) {
return str.replace(/&#xFE0F;/g, function() { return splashtext; });
}
function insertCooking(str) {
return str.replace(/<!-- IMPORTANT-HUCOOKINGINSERT-DONOTDELETE -->/g, function() { return '<span style="display: none;" data-fact="' + randomListItem(vegetables) + '" data-type="' + randomListItem(vegetables) + '">' + randomListItem(cookingInserts) + '</span>'; });
}
function cacheBusting(str) {
return str.replace(/styles.min.css/g, 'styles-368357.min.css');
return str.replace(/styles.min.css/g, 'styles-1636936688.min.css');
}
function cacheBusting2(str) {
return str.replace(/common.js/g, 'common-1628457888.js');
}
function cacheBusting3(str) {
return str.replace(/surf.js/g, 'surf-1628130462.js');
}
function insertAll(str) {
return insertCharset(insertCooking(insertSplash(cacheBusting(str))));
return insertCharset(insertCooking(redditFix(cacheBusting(cacheBusting2(cacheBusting3(str))))));
}
/* Cache Busting
const stats = fs.statSync(path.normalize(__dirname + fileMod), 'utf8'),
seconds = (new Date().getTime() - stats.mtime);
fs.renameSync(path.normalize(__dirname + fileMod), 'links-' + seconds + '.js');
function cacheBusting(str) {
return str.replace(/links.js/g, "links" + '-' + seconds + '.js');
}
*/
function tryReadFile(file) {
return fs.existsSync(file) ? fs.readFileSync(file, 'utf8') : text404;
}
// Local Corrosion Proxy
const fetch = (...args) =>
import ('node-fetch').then(({ default: fetch }) => fetch(...args));
let blacklist;
fetch("https://blocklistproject.github.io/Lists/alt-version/everything-nl.txt").then(response => response.text()).then(data => {
blacklist = data.split("\n") && config.blacklist;
});
const proxy = new corrosion({
prefix: '/search/',
title: 'Untitled Document',
ws: true,
codec: 'xor',
title: config.title,
prefix: config.prefix || '/search/',
codec: config.codec || 'xor',
ws: config.ws,
requestMiddleware: [
corrosion.middleware.blacklist([
'accounts.google.com',
], 'Page is blocked'),
corrosion.middleware.blacklist(blacklist, 'Service not allowed due to bot protection! Make sure you are not trying to verify on a proxy.'),
],
});
proxy.bundleScripts();
/* Querystring Navigation */
app.get('/', async(req, res) => res.send(insertAll(tryReadFile(path.normalize(__dirname + '/views/' + (['/', '/?'].includes(req.url) ? siteIndex : pages[Object.keys(req.query)[0]]))))));
app.get('/', async(req, res) => res.send(insertAll(tryReadFile(path.normalize(__dirname + '/views/' + (['/', '/?'].includes(req.url) ? pages.index : pages[Object.keys(req.query)[0]]))))));
/* Static Files Served */
app.use(express.static(path.normalize(__dirname + '/views')));

View file

@ -1 +0,0 @@
accounts.google.com

View file

@ -1,3 +1,12 @@
{
"port": "8080"
"title": "Untitled Document",
"port": "8080",
"ssl": false,
"ws": true,
"prefix": "/search/",
"codec": "xor",
"blacklist": [
"accounts.google.com",
"dcounter.space"
]
}

21
ecosystem.config.js Normal file
View file

@ -0,0 +1,21 @@
module.exports = {
apps: [{
name: 'HolyUB',
script: './backend.js',
env: {
PORT: 8080,
NODE_ENV: "development",
},
env_production: {
PORT: 8080,
NODE_ENV: "production",
},
instances: "1",
exec_mode: "cluster",
autorestart: true,
exp_backoff_restart_delay: 100,
cron_restart: "*/10 * * * *",
kill_timeout: 3000,
watch: false
}]
};

View file

@ -3,9 +3,9 @@
"version": "4.8.0",
"repository": "https://github.com/QuiteAFancyEmerald/Holy-Unblocker",
"description": "Holy Unblocker is a secure web proxy service with support for many sites.",
"main": "app.js",
"main": "backend.js",
"scripts": {
"start": "node app.js"
"start": "node backend.js"
},
"keywords": [
"proxy",
@ -18,6 +18,7 @@
"corrosion": "^1.0.0",
"express": "^4.17.1",
"mime-types": "^2.1.27",
"ws": "^7.5.3"
"ws": "^7.5.3",
"node-fetch": "^3.1.0"
}
}

16
randomization.json Normal file
View file

@ -0,0 +1,16 @@
{
"chars": [
"&#173;", "&#8203;"
],
"keywords": [
"RandomTerm1", "RandomTerm2", "RandomTerm3", "RandomTerm4", "RandomTerm5", "RandomTerm6"
],
"content": [
"RandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTermRandomTerm",
"RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2RandomTerm2",
"RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3RandomTerm3",
"RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4RandomTerm4",
"RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5RandomTerm5",
"RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6RandomTerm6"
]
}

View file

@ -1,223 +0,0 @@
# Corrosion
Titanium Networks main web proxy.
Successor to [Alloy](https://github.com/titaniumnetwork-dev/alloy)
# Installation:
```
npm i corrosion
```
# Example:
```javascript
const Corrosion = require('corrosion');
const proxy = new Corrosion();
const http = require('http')
http.createServer((req, res) =>
proxy.request(req, res) // Request Proxy
).on('upgrade', (req, socket, head) =>
proxy.upgrade(req, socket, head) // WebSocket Proxy
).listen(80);
```
Much more in depth one is in the [demo folder](demo/).
# API:
## Index
- `config`
- `prefix` String - URL Prefix
- `title` (Boolean / String) - Title used for HTML documents
- `ws` Boolean - WebSocket rewriting
- `cookie` Boolean - Request Cookies
- `codec` String - URL encoding (base64, plain, xor).
- `requestMiddleware` Array - Array of [middleware](#middleware) functions for proxy request (Server).
- `responseMiddleware` Array - Array of [middleware](#middleware) functions for proxy response (Server).
- `standardMiddleware` Boolean - Use the prebuilt [middleware](#middleware) used by default (Server).
#### request
- `request` Request
- `response` Response
#### upgrade
- `request` Request
- `socket` Socket
- `head` Head
#### bundleScripts
Bundles scripts for client injection. Important when updating proxy.
## Properties
- [url](#url)
- [html](#html)
- [js](#js)
- [css](#css)
- [cookies](#cookies)
- [config](#index)
- [codec](#codec)
- [prefix](#url)
## url
#### wrap
- `val` String
- `config` Configuration
- `base` WHATWG URL
- `origin` Location origin - Adds a location origin before the proxy url
- `flags` Array - ['xhr'] => /service/xhr_/https%3A%2F%2Fexample.org/
#### unwrap
- `val` String
- `config` Configuration
- `origin` Location origin - Required if a location origin starts before the proxy url
- `flags` Boolean - Returns with both the URL and flags found { value: 'https://example.org', flags: ['xhr'], })
- `leftovers` Boolean - Use any leftovers if any after the encoded proxy url
## Properties
- `regex` Regex used to determine to rewrite the URL or not.
- `prefix` URL Prefix
- `codec` (base64, plain, xor)
## js
#### process
- `source` JS script
- `url` URL for heading
#### iterate
- `ast` JS AST
- `Callback` Handler initated on AST node
#### createHead
- `url` URL for heading
#### createCallExperssion
- `callee` Acorn.js Node
- `args` Array
#### createArrayExpression
- `elements` Array
#### createIdentifier
- `name` Identifier name
- `preventRewrite` Prevent further rewrites
#### createLiteral
- `value` Literal value
## css
#### process
- `source` CSS
- `config` Configuration
- `base` WHATWG URL
- `origin` Location origin
- `context` CSS-Tree context
## html
#### process
- `source` HTML Source
- `config` Configuration
- `document` Determines of its a document or fragment for parsing
- `base` WHATWG URL
- `origin` Location origin
#### source
- `processed` Rewritten HTML
- `config` Configuration
- `document` Determines of its a document or fragment for parsing
### Properties
- `map` Map for attribute rewriting
## cookies
#### encode
- `input` New (Cookie / Cookies)
- `config` Configuration
- `url` WHATWG URL
- `domain` Cookie Domain
- `secure` Cookie Secure
#### decode
- `store` Encoded Cookies
- `config` Configuration
- `url` WHATWG URL
## codec
#### encode
#### decode
- `str` String
## middleware
Middleware are functions that will be executed either before request or after response. These can alter the way a request is made or response is sent.
```javascript
function(ctx) {r
ctx.body; // (Request / Response) Body (Will return null if none)
ctx.headers; // (Request / Response) Headers
ctx.url; // WHATWG URL
ctx.flags; // URL Flags
ctx.origin; // Request origin
ctx.method; // Request method
ctx.rewrite; // Corrosion object
ctx.statusCode; // Response status (Only available on response)
ctx.agent; // HTTP agent
ctx.address; // Address used to make remote request
ctx.clientSocket; // Node.js Server Socket (Only available on upgrade)
ctx.clientRequest; // Node.js Server Request
ctx.clientResponse; // Node.js Server Response
ctx.remoteResponse; // Node.js Remote Response (Only available on response)
};
```
### Default middleware
- Request
- requestHeaders
- Response
- responseHeaders
- decompress
- rewriteBody
### Available Middleware
#### address (Request)
- `arr` Array of IP addresses to use in request
```javascript
const Corrosion = require('corrosion');
const proxy = new Corrosion({
requestMiddleware: [
Corrosion.middleware.address([
0.0.0.0,
0.0.0.0
]),
],
});
```
### blacklist
- `arr` Array of hostnames to block clients from seeing
- `page` Block page
```javascript
const Corrosion = require('corrosion');
const proxy = new Corrosion({
requestMiddleware: [
Corrosion.middleware.blacklist([
'example.org',
'example.com',
], 'Page is blocked'),
],
});
```

View file

@ -1,16 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<style>
body {
text-align: center;
}
</style>
</head>
<body>
<form action="/service/gateway/" method="POST">
<input name="url" placeholder="Search the web">
<input type="submit" value="Go">
</form>
</body>
</html>

View file

@ -1,19 +0,0 @@
const https = require('https');
const fs = require('fs');
const path = require('path');
const ssl = {
key: fs.readFileSync(path.join(__dirname, '/ssl.key')),
cert: fs.readFileSync(path.join(__dirname, '/ssl.cert')),
};
const server = https.createServer(ssl);
const Corrosion = require('../');
const proxy = new Corrosion({
codec: 'xor',
});
proxy.bundleScripts();
server.on('request', (request, response) => {
if (request.url.startsWith(proxy.prefix)) return proxy.request(request, response);
response.end(fs.readFileSync(__dirname + '/index.html', 'utf-8'));
}).on('upgrade', (clientRequest, clientSocket, clientHead) => proxy.upgrade(clientRequest, clientSocket, clientHead)).listen(443);

File diff suppressed because one or more lines are too long

View file

@ -1,47 +0,0 @@
{
"_from": "corrosion",
"_id": "corrosion@1.0.0",
"_inBundle": false,
"_integrity": "sha512-jRKoOTWBmpylgOARW6vsVE4DaSsg9Qnt0E7c7Rp5q2kFAlYrr8KrhjUWJrKmlHL8wbLi8EUdlNId4vvL0PHGdA==",
"_location": "/corrosion",
"_phantomChildren": {},
"_requested": {
"type": "tag",
"registry": true,
"raw": "corrosion",
"name": "corrosion",
"escapedName": "corrosion",
"rawSpec": "",
"saveSpec": null,
"fetchSpec": "latest"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/corrosion/-/corrosion-1.0.0.tgz",
"_shasum": "22aa376a6bd72720f3994f8e091b880b87c02cc4",
"_spec": "corrosion",
"_where": "C:\\Users\\Not A Porxy\\Documents\\HolyUnblockerWorkspace\\HolyUB",
"author": "",
"bundleDependencies": false,
"dependencies": {
"acorn-hammerhead": "^0.5.0",
"css-tree": "^1.1.3",
"esotope-hammerhead": "^0.6.1",
"parse5": "^6.0.1",
"webpack": "^5.46.0"
},
"deprecated": false,
"description": "Titanium Networks main web proxy.\r Successor to [Alloy](https://github.com/titaniumnetwork-dev/alloy)\r # Installation:\r ```\r npm i corrosion\r ```",
"directories": {
"lib": "lib"
},
"license": "ISC",
"main": "lib/server/index.js",
"name": "corrosion",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.0"
}

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
exports.xor = {
encode(str){
if (!str) return str;

View file

@ -1,8 +1,7 @@
// -------------------
// This file is shared both by the server and client.
// Do not include any browser or node specific APIs
// -------------------
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
class CookieStore {
constructor(val = ''){
this.data = {};

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const { SetCookie, CookieStore } = require('./cookie-parser');
class CookieRewriter {

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const csstree = require('css-tree');
class CSSRewriter {

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const parse5 = require('parse5');
class HTMLRewriter {

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const { parse } = require('acorn-hammerhead');
const { generate } = require('./esotope');

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const URLWrapper = require('./url');
const CookieRewriter = require('./cookie');
const CSSRewriter = require('./css');

View file

@ -1,3 +1,7 @@
// -------------------------------------------------------------
// WARNING: this file is used by both the client and the server.
// Do not use any browser or node-specific API!
// -------------------------------------------------------------
const codec = require('./codec');
const defaultConfig = {
prefix: '/service/',

View file

@ -2,7 +2,7 @@
<html lang=zxx>
<head>
<base href="/">
<base href="/">
<meta charset=UTF-8>
<meta name=viewport content="width=device-width,initial-scale=1.0,shrink-to-fit=no">
<title>H&#8203;oly Unb&#8203;loc&#8203;ke&#8203;r | 404</title>
@ -41,7 +41,8 @@
<div class="col-sm-6 col-md-3 item">
<h3>Services</h3>
<ul>
<li><a id="clink">Corrosi<wbr>on</a></li>
<li><a id="allink">Al<wbr>loy</a></li>
<li><a id="plink">PM P<wbr>ro<wbr>xy</a></li>
<li><a id="nclink">No<wbr>deClu<wbr>sters</a></li>
</ul>
</div>

View file

@ -1,120 +0,0 @@
! function(e) {
var t = {};
function r(n) {
if (t[n]) return t[n].exports;
var o = t[n] = {
i: n,
l: !1,
exports: {}
};
return e[n].call(o.exports, o, o.exports, r), o.l = !0, o.exports
}
r.m = e, r.c = t, r.d = function(e, t, n) {
r.o(e, t) || Object.defineProperty(e, t, {
enumerable: !0,
get: n
})
}, r.r = function(e) {
"undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
value: "Module"
}), Object.defineProperty(e, "__esModule", {
value: !0
})
}, r.t = function(e, t) {
if (1 & t && (e = r(e)), 8 & t) return e;
if (4 & t && "object" == typeof e && e && e.__esModule) return e;
var n = Object.create(null);
if (r.r(n), Object.defineProperty(n, "default", {
enumerable: !0,
value: e
}), 2 & t && "string" != typeof e)
for (var o in e) r.d(n, o, function(t) {
return e[t]
}.bind(null, o));
return n
}, r.n = function(e) {
var t = e && e.__esModule ? function() {
return e.default
} : function() {
return e
};
return r.d(t, "a", t), t
}, r.o = function(e, t) {
return Object.prototype.hasOwnProperty.call(e, t)
}, r.p = "", r(r.s = 100)
}({
100: function(e, t, r) {
"use strict";
r.r(t);
var n = r(3);
if ("undefined" != typeof ServiceWorkerGlobalScope) {
var o = "https://arc.io" + n.k;
importScripts(o)
} else if ("undefined" != typeof SharedWorkerGlobalScope) {
var c = "https://arc.io" + n.i;
importScripts(c)
} else if ("undefined" != typeof DedicatedWorkerGlobalScope) {
var i = "https://arc.io" + n.b;
importScripts(i)
}
},
3: function(e, t, r) {
"use strict";
r.d(t, "a", function() {
return n
}), r.d(t, "f", function() {
return c
}), r.d(t, "j", function() {
return i
}), r.d(t, "i", function() {
return a
}), r.d(t, "b", function() {
return d
}), r.d(t, "k", function() {
return f
}), r.d(t, "c", function() {
return p
}), r.d(t, "d", function() {
return s
}), r.d(t, "e", function() {
return l
}), r.d(t, "g", function() {
return m
}), r.d(t, "h", function() {
return v
});
var n = {
images: ["bmp", "jpeg", "jpg", "ttf", "pict", "svg", "webp", "eps", "svgz", "gif", "png", "ico", "tif", "tiff", "bpg"],
video: ["mp4", "3gp", "webm", "mkv", "flv", "f4v", "f4p", "f4bogv", "drc", "avi", "mov", "qt", "wmv", "amv", "mpg", "mp2", "mpeg", "mpe", "m2v", "m4v", "3g2", "gifv", "mpv"],
audio: ["mid", "midi", "aac", "aiff", "flac", "m4a", "m4p", "mp3", "ogg", "oga", "mogg", "opus", "ra", "rm", "wav", "webm", "f4a", "pat"],
documents: ["pdf", "ps", "doc", "docx", "ppt", "pptx", "xls", "otf", "xlsx"],
other: ["swf"]
},
o = "arc:",
c = {
COMLINK_INIT: "".concat(o, "comlink:init"),
NODE_ID: "".concat(o, ":nodeId"),
CDN_CONFIG: "".concat(o, "cdn:config"),
P2P_CLIENT_READY: "".concat(o, "cdn:ready"),
STORED_FIDS: "".concat(o, "cdn:storedFids"),
SW_HEALTH_CHECK: "".concat(o, "cdn:healthCheck"),
WIDGET_CONFIG: "".concat(o, "widget:config"),
WIDGET_INIT: "".concat(o, "widget:init"),
WIDGET_UI_LOAD: "".concat(o, "widget:load"),
BROKER_LOAD: "".concat(o, "broker:load"),
RENDER_FILE: "".concat(o, "inlay:renderFile"),
FILE_RENDERED: "".concat(o, "inlay:fileRendered")
},
i = "serviceWorker",
a = "/".concat("shared-worker", ".js"),
d = "/".concat("dedicated-worker", ".js"),
f = "/".concat("arc-sw-core", ".js"),
u = "".concat("arc-sw", ".js"),
p = ("/".concat(u), "/".concat("arc-sw"), "arc-db"),
s = "key-val-store",
l = 2 ** 17,
m = "".concat("https://overmind.arc.io", "/api/propertySession"),
v = "".concat("https://warden.arc.io", "/mailbox/propertySession")
}
});

@ -1 +0,0 @@
Subproject commit ab39ef03e7c82104b94f63a670519bcc81c2911d

View file

@ -1,8 +0,0 @@
/.settings
*.TODO
*.mo
*.swp
.idea
lang/.DS_Store
.DS_Store
node_modules

View file

@ -1,5 +0,0 @@
{
"eqnull": true,
"sub": true,
"multistr": true
}

View file

@ -1,376 +0,0 @@
Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
```
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
```
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.

View file

@ -1,46 +0,0 @@
A Dark Room
===========
> "awake. head throbbing. vision blurry. come light the fire."
a minimalist text adventure game for your browser
[Click to play](http://adarkroom.doublespeakgames.com)
<table>
<tr><th colspan=4>Available Languages</tr>
<tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=zh_cn">Chinese (Simplified)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=zh_tw">Chinese (Traditional)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=en">English</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=fr">French</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=de">German</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=el">Greek</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=id">Indonesian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=it">Italian</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ja">Japanese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ko">Korean</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=nb">Norwegian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pl">Polish</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pt">Portuguese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=pt_br">Portuguese (Brazil)</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=ru">Russian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=es">Spanish</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=sv">Swedish</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=th">Thai</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=tr">Turkish</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=uk">Ukrainian</a></td>
</tr><tr>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=vi">Vietnamese</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=lt_LT">Lithuanian</a></td>
<td><a href="http://adarkroom.doublespeakgames.com/?lang=gl">Galician</a></td>
</tr>
</table>
or play the latest on [GitHub](http://doublespeakgames.github.io/adarkroom)
<a href="https://itunes.apple.com/us/app/a-dark-room/id736683061"><img src="http://i.imgur.com/DMdnDYq.png" height="50"></a>
<a href="https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom"><img src="http://i.imgur.com/bLWWj4r.png" height="50"></a>

Some files were not shown because too many files have changed in this diff Show more