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:
<scripttype="module" src="./index.js"></script>Embedded code:
<scripttype="module">/*Code here*/</script>3. Add Eclipse Inside you script import the eclipse script like this
importEclipsefrom'./eclipse/EC.js';4. New Eclipse To install and setup Eclipse, create a new Eclipse like this
constEC=newEclipse({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=newEclipse({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
<scripttype="module" src="./index.js"></script>index.js
importEclipsefrom'./eclipse/EC.js';constEC=newEclipse({bare: "/bare/"})window.location.href=EC.search(query,"https://www.google.com/search?q=%s")- srcset
- js rewrites
- client rewrites
- more html rewrites
- ws
- json rewrites
- rewrite url all in one object
- headers export as object
- hex encoding