Initial commit.
commit
e09b263324
@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
out
|
@ -0,0 +1,9 @@
|
||||
const load = async () => {
|
||||
console.log("[CCExt] Loading Cumcord...");
|
||||
const response = await fetch("https://cors.bridged.cc/https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js");
|
||||
const text = await response.text()
|
||||
eval(text);
|
||||
}
|
||||
const el = document.createElement('script');
|
||||
el.appendChild(document.createTextNode(`(${load.toString()})();`));
|
||||
document.body.appendChild(el);
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "Cumcord for Web",
|
||||
"description": "A heavy, throbbing, and easy to use cum expeller; now in your browser.",
|
||||
"version": "0.0.1",
|
||||
"author": "Drake",
|
||||
"content_scripts": [
|
||||
{
|
||||
"matches": ["*://*.discord.com/*"],
|
||||
"js": ["content.js"]
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
"storage",
|
||||
"webRequest",
|
||||
"webRequestBlocking",
|
||||
"*"
|
||||
],
|
||||
"manifest_version": 2
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Hello World!</title>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
window.location.href = "https://discord.com/app"
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,34 @@
|
||||
const { app, BrowserWindow, webContents, session } = require('electron');
|
||||
const fetch = require('node-fetch');
|
||||
const Path = require('path')
|
||||
|
||||
const fetchCumcord = async () => {
|
||||
const response = await fetch("https://cors.bridged.cc/https://raw.githubusercontent.com/Cumcord/Cumcord/stable/dist/build.js");
|
||||
const text = await response.text()
|
||||
return text;
|
||||
}
|
||||
|
||||
function createWindow() {
|
||||
const win = new BrowserWindow({
|
||||
width: 800,
|
||||
height: 600,
|
||||
backgroundColor: "#2F3136"
|
||||
});
|
||||
win.removeMenu();
|
||||
win.loadFile("index.html")
|
||||
//win.loadURL('https://discord.com/app')
|
||||
win.webContents.openDevTools()
|
||||
let ses = win.webContents.session;
|
||||
ses.webRequest.onHeadersReceived(({ responseHeaders, url }, done) => {
|
||||
delete responseHeaders['content-security-policy'];
|
||||
done({responseHeaders});
|
||||
})
|
||||
ses.loadExtension(Path.join(__dirname, 'CCExt'));
|
||||
return win;
|
||||
}
|
||||
app.whenReady().then(() => {
|
||||
let win = createWindow();
|
||||
app.on('window-all-closed', function () {
|
||||
app.quit();
|
||||
});
|
||||
});
|
@ -0,0 +1,47 @@
|
||||
{
|
||||
"name": "drakecord",
|
||||
"version": "1.0.0",
|
||||
"description": "Discord: Drake Edition",
|
||||
"main": "main.js",
|
||||
"keywords": [
|
||||
"discord"
|
||||
],
|
||||
"author": "Drake",
|
||||
"license": "WTFPL",
|
||||
"devDependencies": {
|
||||
"@electron-forge/cli": "^6.0.0-beta.60",
|
||||
"@electron-forge/maker-deb": "^6.0.0-beta.60",
|
||||
"@electron-forge/maker-rpm": "^6.0.0-beta.60",
|
||||
"@electron-forge/maker-squirrel": "^6.0.0-beta.60",
|
||||
"@electron-forge/maker-zip": "^6.0.0-beta.60",
|
||||
"electron": "^14.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
"package": "electron-forge package",
|
||||
"make": "electron-forge make"
|
||||
},
|
||||
"dependencies": {
|
||||
"electron-squirrel-startup": "^1.0.0",
|
||||
"node-fetch": "^2.6.1"
|
||||
},
|
||||
"config": {
|
||||
"forge": {
|
||||
"packagerConfig": {},
|
||||
"makers": [
|
||||
{
|
||||
"name": "@electron-forge/maker-squirrel",
|
||||
"config": {
|
||||
"name": "drakecord"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "@electron-forge/maker-zip",
|
||||
"platforms": [
|
||||
"linux"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue