Giter Site home page Giter Site logo

tunushe / palladium Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ludicrousdevelopment/palladium

0.0 0.0 0.0 2.88 MB

Web Proxy made by EnderKingJ, intended as a secondary proxy to Womginx or Corrosion, many sites not supported

JavaScript 100.00%

palladium's Introduction

Palladium

Secondary Web Proxy to the Likes of Womginx and Corrosion.

Made by EnderKingJ

Hosting Services

Speed (Discord)

Palladium is the fastest proxy, severely beating Corrosion by 3x, Alloy - No Discord Support, Womginx - 1.3x

Done

  • hCaptcha Support
  • Discord Support
  • Reddit Support
  • Websocket Support
  • Cookie Rewrites

To-Do

  • Better HTML Rewriter
  • Better JS Rewriter
  • Better Cookie Support
  • LocalStorage Proxying
  • More Native Browser Functions
  • Better Headers Code
  • Single File Version
  • Youtube UI Fix

Supported Sites

Github

Supported + Login (Some Parts of Dashboard Unsupported

Discord

Supported

Reddit

Mostly Supported

Youtube

Somewhat Supported, Errors: Reddit bug, can play video but navigating to other pages requires opening in new tab

Setup

Importing and Initiating

const Palladium = require("palladiumub"); //Outdated package, change to lib/server folder path

const proxy = new Palladium(); //default config

const http = require("http");

Config

{
  "prefix": "/service/",
  "ssl": true,
  "encode": "xor",
  "title": "Service",
  "requestMiddleware": [
    Palladium.blackList(["discord.com", "accounts.google.com"], "Page is Blocked by Host")
  ],
  Corrosion: [false, {}]
  server: your-http-server
}

Server

var server = http.createServer();

proxy.init();

server.on("request", (req, res) => {
  if (req.url.startsWith(proxy.prefix)) return proxy.request(req, res)
  res.end("<form action='/service/gateway' method='POST'><input name='url'><input type='submit'></form>")
})

End Result

index.js

const Palladium = require("palladiumub");

const http = require("http");

var server = http.createServer();

const proxy = new Palladium({
  "prefix": "/service/",
  "encode": "xor",
  "title": "Service",
  "requestMiddleware": [
    Palladium.blackList(["any-link.com", "accounts.google.com"], "Page is Blocked by Host")
  ],
  server: server,
});

proxy.init();

server.on("request", (req, res) => {
  if (req.url.startsWith(proxy.prefix)) return proxy.request(req, res)
  res.writeHead(200, {'content-type': 'text/html'}).end("<form action='/service/gateway' method='POST'><input name='url'><input type='submit'></form>")
})

server.listen(8080)

palladium's People

Contributors

s-tn 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.