Skip to content

TODO: Dynamic operation IDs #1

@dropout1337

Description

@dropout1337

The configuration set here is subject to change. By sending a GET request to https://twitter.com/, the response body will contain a URL for main.*.js, for example:

<link rel="preload" as="script" crossorigin="anonymous" href="https://abs.twimg.com/responsive-web/client-web/main.546c97da.js" />
<meta property="fb:app_id" content="2231777543" />

Upon inspecting the content of main.546c97da.js, you'll find operation IDs, like this:

    981755: e=>{
        e.exports = {
            queryId: "9LlZicVr2IBf4u2qW5n4-A",
            operationName: "Followers",
            operationType: "query",
            metadata: {
                featureSwitches: ["responsive_web_graphql_exclude_directive_enabled", "verified_phone_label_enabled", "responsive_web_home_pinned_timelines_enabled", ... ],
                fieldToggles: ["withAuxiliaryUserLabels", "withArticleRichContentState"]
            }
        }
    }

Parsing the JavaScript file allows you to extract the operation IDs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions