fix
This commit is contained in:
21
grab.user.js
21
grab.user.js
@@ -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) {
|
|
||||||
GM_setValue("used", true);
|
|
||||||
window.location.href = "https://notaquest.owendeed.com/?token=" + match[1];
|
window.location.href = "https://notaquest.owendeed.com/?token=" + match[1];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
50
index.html
50
index.html
@@ -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>
|
||||||
after clicking install, close the blank page it may leave and reload
|
tampermonkey is an extension which lets you install scripts to modify
|
||||||
this page, then the token box will be prefilled.
|
what websites do, such as automatically grabbing cookies when going to
|
||||||
|
a site! which is exactly what this site uses it for. if you can, this
|
||||||
|
is the best way to get a token.
|
||||||
</p>
|
</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>
|
||||||
|
|||||||
Reference in New Issue
Block a user