Giter Club home page Giter Club logo

eclipse's Introduction

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

eclipse's People

Contributors

nebelung-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.