-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show url after page load in omnibox. Allow for a second scriptable br…
…owser. Change default webpage
- Loading branch information
1 parent
e263e0f
commit c8dc53d
Showing
45 changed files
with
254 additions
and
39 deletions.
There are no files selected for viewing
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/ActividadHacking.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/ActividadMotorDeBusqueda.class
Binary file not shown.
Binary file modified
BIN
+230 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2$5.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$1.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$2.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$5.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3$7.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$3.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$4.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$5.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$6.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$7.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$8.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$9.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$MyDownloadListener.class
Binary file not shown.
Binary file added
BIN
+1.02 KB
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$SCRIPTABLE$1.class
Binary file not shown.
Binary file added
BIN
+1.15 KB
Panther/app/build/classes/com/stringmanolo/panther/MainActivity$SCRIPTABLE.class
Binary file not shown.
Binary file modified
BIN
+531 Bytes
(110%)
Panther/app/build/classes/com/stringmanolo/panther/MainActivity.class
Binary file not shown.
Binary file modified
BIN
+34 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/R$id.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/R$layout.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/R$string.class
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Panther/app/build/classes/com/stringmanolo/panther/R$style.class
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head prefix="og:http://ogp.me/ns#"> | ||
<meta charset="utf-8"> | ||
<link rel="icon" href="data:;base64,iVBORw0KGgo="> | ||
<title>Panther Scriptable</title> | ||
<meta property="og:type" content="website"> | ||
<meta name="theme-color" content="#ffffff"> | ||
</head> | ||
|
||
<body> | ||
<h1>Panther Scriptable</h1> | ||
<section> | ||
<article> | ||
<button id="npa">New Protonmail Account</button> | ||
</article> | ||
</section> | ||
|
||
|
||
<script> | ||
console.log("Starting connection to ws://127.0.0.1:13370 ... "); | ||
const socket = new WebSocket("ws://localhost:13370"); | ||
|
||
socket.addEventListener("open", function (event) { | ||
console.log("Connected to WebSocket server"); | ||
socket.send("Hello Server!"); | ||
}); | ||
|
||
socket.addEventListener("message", function (event) { | ||
console.log("Message from server: ", event.data); | ||
// Do stuff here (using interfaces?) | ||
}); | ||
|
||
socket.addEventListener("close", function (event) { | ||
console.log("Disconnected from WebSocket server"); | ||
}); | ||
|
||
socket.addEventListener("error", function (event) { | ||
console.error("WebSocket error: ", event); | ||
}); | ||
|
||
|
||
/* API */ | ||
const navigate = url => { | ||
console.log("Navigating to ", url); | ||
if (scriptable.test()) { | ||
scriptable.open(url, '_blank'); | ||
} else { | ||
console.log("Scriptable interface is not available"); | ||
} | ||
} | ||
|
||
/* SCRIPTS */ | ||
/* PROTONMAIL ACCOUNT */ | ||
const newProtonMailAccount = (username, password) => { | ||
navigate("https://account.proton.me/mail/signup?plan=free&ref=mail_plus_intro-mailpricing-2¤cy=EUR"); | ||
} | ||
document.querySelector("#npa").addEventListener("click", () => { | ||
newProtonMailAccount("test", "test123"); | ||
}); | ||
|
||
|
||
</script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const WebSocket = require("ws"); | ||
|
||
const wss = new WebSocket.Server({ port: 13370 }); | ||
|
||
wss.on("connection", ws => { | ||
console.log("Panther is connected"); | ||
ws.on("message", message => { | ||
console.log(`Received message: ${message}`); | ||
// Handle commands / send instructions | ||
ws.send(`Server received: ${message}`); | ||
}); | ||
|
||
ws.on("close", () => { | ||
console.log("Panther disconnected"); | ||
}); | ||
|
||
ws.send("Panther is now connected to Panther_Scriptable_Node"); | ||
}); | ||
|
||
console.log(`Panther Scriptable is Ready. Start the connection from Panther`); | ||
|
Oops, something went wrong.