Skip to content
This repository was archived by the owner on Apr 19, 2021. It is now read-only.
This repository was archived by the owner on Apr 19, 2021. It is now read-only.

Add Check if valorant is dropped #55

Open
@guttir14

Description

@guttir14

just post request to gql.twitch.tv/gql with Autorization token ( {Authorization: "Oauth " + cookie.token} ) in header and with body:

{
    "operationName": "OnsiteNotifications_ListNotifications",
    "variables": {
        "limit": 3,
        "cursor": "",
        "language": "en"
    },
    "extensions": {
        "persistedQuery": {
            "version": 1,
            "sha256Hash": "b317b93ed481bf07c35defbcf01848f09744805ebb640734763298f9a7dfd64f"
        }
    }
}

If result contains "You just received the **VALORANT**" then valorant has been dropped and we can console.log('dropped') and process.exit()

Also, to easy get token you can use next script in your browser console:

newWin=window.open("about:blank","","width=350,height=10");newWin.document.write(JSON.stringify(Object({token:cookies["auth-token"]})))

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions