diff --git a/grab.user.js b/grab.user.js index cfee03e..f9baa3f 100644 --- a/grab.user.js +++ b/grab.user.js @@ -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]; } \ No newline at end of file diff --git a/index.html b/index.html index 88d7fb0..bf1f243 100644 --- a/index.html +++ b/index.html @@ -121,13 +121,53 @@ it :)

- -

- after clicking install, close the blank page it may leave and reload - this page, then the token box will be prefilled. -

+
+ what is tampermonkey and how do i get it? +

+ tampermonkey is an extension which lets you install scripts to modify + 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. +

+ tampermonkey website
+ chrome (+chromium based browsers) extension +
+ firefox (+firefox based browsers) extension +
+
+ automated method (tampermonkey required) +
    +
  1. + +
  2. +
  3. +

    + after clicking install, click the get token automatically button, + which will open a new notaquest tab with your token prefilled. +

    +
  4. +
  5. + +
  6. +
  7. +

    feel free to uninstall the tampermonkey script afterwards.

    +
  8. +
+
manual method (no tampermonkey)