Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Apr 7, 2024. It is now read-only.

cognetwork-dev/Eclipse

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eclipse

[Unfinished] An interception web proxy

Eclipse is a new interception web proxy that follows TOMP standards

Setup

1. Download files Download all the folder /eclipse/ and put it in the top directory under /eclipse/

2. Include script In your head or body tag, include a script with type="module"

External page:

<script type="module" src="./index.js"></script>

Embedded code:

<script type="module">
/*Code here*/
</script>

3. Add Eclipse Inside you script import the eclipse script like this

import Eclipse from './eclipse/EC.js';

4. New Eclipse To install and setup Eclipse, create a new Eclipse like this

const EC = new Eclipse({
  bare: "/bare/"
})

Set the bare server to a valid bare client by changing "/bare"

If you want to access this outside the file create a global variable

window.EC = new Eclipse({
  bare: "/bare/"
})

5. Go to page Once you setup a new Eclipse, you can access different things

For the examples below the new Eclipse will be named EC

Bare - EC.bare

Prefix - EC.prefix

Get url - EC.url("https://example.com")

Search engine - EC.search("proxy", "https://www.google.com/search?q=%s")

Change the search engine to any engine with %s in place of query

Go to page:

window.location.href = EC.url("https://example.com")

Go to page or search:

window.location.href = EC.search("proxy", "https://www.google.com/search?q=%s")

Full Result index.html

<script type="module" src="./index.js"></script>

index.js

import Eclipse from './eclipse/EC.js';

const EC = new Eclipse({
  bare: "/bare/"
})

window.location.href = EC.search(query, "https://www.google.com/search?q=%s")

To Do

  • srcset
  • js rewrites
  • client rewrites
  • more html rewrites
  • ws
  • json rewrites
  • rewrite url all in one object
  • headers export as object
  • hex encoding

About

[Unfinished] An interception web proxy

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.