Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Core scripts for Ultraviolet installations. TOMP bare server not included.

Notifications You must be signed in to change notification settings

corn-unblocked/Ultraviolet-Core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ultraviolet-scripts

Core Ultraviolet scripts

Configuration

Configure Ultraviolet for both client-hooking & service worker in uv.config.js

self.__uv$config = {
    bare: '/bare/',
    prefix: '/service/',
    encodeUrl: Ultraviolet.codec.xor.encode,
    decodeUrl: Ultraviolet.codec.xor.decode,
    handler: '/uv.handler.js',
    bundle: '/uv.bundle.js',
    config: '/uv.config.js',
};

Example Usage

importScripts('/PATHTOSCRIPTS/uv.sw.js');

const sw = new UVServiceWorker();

self.addEventListener('fetch', event =>
    event.respondWith(
        sw.fetch(event)
    )
);

About

Core scripts for Ultraviolet installations. TOMP bare server not included.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%