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

View File

@@ -121,13 +121,53 @@
it :) it :)
</p> </p>
</details> </details>
<button onclick="window.open('/grab.user.js')"> <details>
get token with tampermonkey (tampermonkey must be installed) <summary>what is tampermonkey and how do i get it?</summary>
</button> <p>
<p> tampermonkey is an extension which lets you install scripts to modify
after clicking install, close the blank page it may leave and reload what websites do, such as automatically grabbing cookies when going to
this page, then the token box will be prefilled. a site! which is exactly what this site uses it for. if you can, this
</p> is the best way to get a token.
</p>
<a href="https://www.tampermonkey.net/">tampermonkey website</a><br />
<a
href="https://chromewebstore.google.com/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo"
>chrome (+chromium based browsers) extension</a
>
<br />
<a href="https://addons.mozilla.org/firefox/addon/tampermonkey/"
>firefox (+firefox based browsers) extension</a
>
</details>
<details>
<summary>automated method (tampermonkey required)</summary>
<ol>
<li>
<button onclick="window.open('/grab.user.js')">
install tampermonkey script for automating the token process
(tampermonkey must be installed)
</button>
</li>
<li>
<p>
after clicking install, click the get token automatically button,
which will open a new notaquest tab with your token prefilled.
</p>
</li>
<li>
<button
onclick="
window.location.href = 'https://secure.oculus.com/#notaquest'
"
>
get token automatically (tampermonkey script must be installed)
</button>
</li>
<li>
<p>feel free to uninstall the tampermonkey script afterwards.</p>
</li>
</ol>
</details>
<details> <details>
<summary>manual method (no tampermonkey)</summary> <summary>manual method (no tampermonkey)</summary>
<ol> <ol>