unfurl icon indicating copy to clipboard operation
unfurl copied to clipboard

Twitter parser - full list for the sharing code parameter

Open 2xyo opened this issue 2 years ago • 1 comments

Description

A js file on twitter website contains a dict of sharing code and associated platform.

References

  • https://abs.twimg.com/responsive-web/client-web/main.ea5f3cf9.js
    • https://web.archive.org/web/20220924170519/https://abs.twimg.com/responsive-web/client-web/main.ea5f3cf9.js
l = Object.freeze({
            "01": "twcamp^share|twsrc^android|twgr^sms",
            "02": "twcamp^share|twsrc^android|twgr^email",
            "03": "twcamp^share|twsrc^android|twgr^gmail",
            "04": "twcamp^share|twsrc^android|twgr^facebook",
            "05": "twcamp^share|twsrc^android|twgr^wechat",
            "06": "twcamp^share|twsrc^android|twgr^line",
            "07": "twcamp^share|twsrc^android|twgr^fbmessenger",
            "08": "twcamp^share|twsrc^android|twgr^whatsapp",
            "09": "twcamp^share|twsrc^android|twgr^other",
            10: "twcamp^share|twsrc^ios|twgr^sms",
            11: "twcamp^share|twsrc^ios|twgr^email",
            12: "twcamp^share|twsrc^ios|twgr^other",
            13: "twcamp^share|twsrc^android|twgr^download",
            14: "twcamp^share|twsrc^ios|twgr^download",
            15: "twcamp^share|twsrc^android|twgr^hangouts",
            16: "twcamp^share|twsrc^android|twgr^twitterdm",
            17: "twcamp^share|twsrc^m5|twgr^email",
            18: "twcamp^share|twsrc^m5|twgr^download",
            19: "twcamp^share|twsrc^android|twgr^copy",
            20: "twcamp^share|twsrc^m5|twgr^copy",
            21: "twcamp^share|twsrc^ios|twgr^copy",
            22: "twcamp^share|twsrc^ios|twgr^snapchat",
            23: "twcamp^share|twsrc^android|twgr^snapchat",
            24: "twcamp^share|twsrc^ios|twgr^whatsapp",
            25: "twcamp^share|twsrc^ios|twgr^fbmessenger",
            26: "twcamp^share|twsrc^ios|twgr^facebook",
            27: "twcamp^share|twsrc^ios|twgr^gmail",
            28: "twcamp^share|twsrc^ios|twgr^telegram",
            29: "twcamp^share|twsrc^ios|twgr^line",
            30: "twcamp^share|twsrc^ios|twgr^viber",
            31: "twcamp^share|twsrc^android|twgr^slack",
            32: "twcamp^share|twsrc^android|twgr^kakao",
            33: "twcamp^share|twsrc^android|twgr^discord",
            34: "twcamp^share|twsrc^android|twgr^reddit",
            35: "twcamp^share|twsrc^android|twgr^telegram",
            36: "twcamp^share|twsrc^android|twgr^instagram",
            37: "twcamp^share|twsrc^android|twgr^daum",
            38: "twcamp^share|twsrc^ios|twgr^instagram",
            39: "twcamp^share|twsrc^ios|twgr^linkedin",
            40: "twcamp^share|twsrc^android|twgr^linkedin",
            41: "twcamp^share|twsrc^gryphon|twgr^copy",
            42: "twcamp^share|twsrc^iphone|twgr^sms",
            43: "twcamp^share|twsrc^iphone|twgr^email",
            44: "twcamp^share|twsrc^iphone|twgr^other",
            45: "twcamp^share|twsrc^iphone|twgr^download",
            46: "twcamp^share|twsrc^iphone|twgr^copy",
            47: "twcamp^share|twsrc^iphone|twgr^snapchat",
            48: "twcamp^share|twsrc^iphone|twgr^whatsapp",
            49: "twcamp^share|twsrc^iphone|twgr^fbmessenger",
            50: "twcamp^share|twsrc^iphone|twgr^facebook",
            51: "twcamp^share|twsrc^iphone|twgr^gmail",
            52: "twcamp^share|twsrc^iphone|twgr^telegram",
            53: "twcamp^share|twsrc^iphone|twgr^line",
            54: "twcamp^share|twsrc^iphone|twgr^viber",
            55: "twcamp^share|twsrc^iphone|twgr^instagram",
            56: "twcamp^share|twsrc^iphone|twgr^linkedin",
            57: "twcamp^share|twsrc^ipad|twgr^sms",
            58: "twcamp^share|twsrc^ipad|twgr^email",
            59: "twcamp^share|twsrc^ipad|twgr^other",
            60: "twcamp^share|twsrc^ipad|twgr^download",
            61: "twcamp^share|twsrc^ipad|twgr^copy",
            62: "twcamp^share|twsrc^ipad|twgr^snapchat",
            63: "twcamp^share|twsrc^ipad|twgr^whatsapp",
            64: "twcamp^share|twsrc^ipad|twgr^fbmessenger",
            65: "twcamp^share|twsrc^ipad|twgr^facebook",
            66: "twcamp^share|twsrc^ipad|twgr^gmail",
            67: "twcamp^share|twsrc^ipad|twgr^telegram",
            68: "twcamp^share|twsrc^ipad|twgr^line",
            69: "twcamp^share|twsrc^ipad|twgr^viber",
            70: "twcamp^share|twsrc^ipad|twgr^instagram",
            71: "twcamp^share|twsrc^ipad|twgr^linkedin"
        })

2xyo avatar Sep 24 '22 17:09 2xyo

Wow, that's a great find! Thanks for sharing. And the six I've tentatively identified through testing match up to this (whew).

obsidianforensics avatar Sep 26 '22 20:09 obsidianforensics