This commit is contained in:
2026-09-16 17:08:35 -04:00
parent c1e0461b90
commit 2d8042e61c
2 changed files with 53 additions and 24 deletions

View File

@@ -4,25 +4,14 @@
// @version 1.0
// @description One-click Meta token grabber for Notaquest
// @match https://secure.oculus.com/*
// @match https://notaquest.owendeed.com/*
// @grant GM_setValue
// @grant GM_getValue
// @grant none
// @run-at document-idle
// ==/UserScript==
if (GM_getValue("used")) return;
if (location.hostname === "notaquest.owendeed.com") {
if (!location.search.includes("token=")) {
window.location.href = "https://secure.oculus.com/";
}
return;
}
if (location.hash !== "#notaquest") return;
if (location.hostname === "secure.oculus.com") {
var html = document.documentElement.innerHTML;
var match = html.match(/"accessToken":"(OC[A-Za-z0-9+\/=]+)"/);
if (match) {
GM_setValue("used", true);
window.location.href = "https://notaquest.owendeed.com/?token=" + match[1];
}
var html = document.documentElement.innerHTML;
var match = html.match(/"accessToken":"(OC[A-Za-z0-9+\/=]+)"/);
if (match) {
window.location.href = "https://notaquest.owendeed.com/?token=" + match[1];
}