TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

How to Know a Twitter Poll Result Without Voting

1 点作者 vicke4将近 5 年前

1 comment

vicke4将近 5 年前
Hey guys,<p>I wanted to check the Twitter poll results before voting for one of the choices. So, I wrote a bookmarklet which opens an alert with the poll results when used on an ongoing Twitter poll page. The script just intercepts the API requests Twitter make to fetch poll results every 30 seconds and populates the result. You can find the script as a gist: <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;vicke4&#x2F;891b14bbf46f247fb7314cb3565d1797" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;vicke4&#x2F;891b14bbf46f247fb7314cb3565d1...</a>.<p>To test the bookmarklet you need to find a poll. You can get only polls as results when you search for one of the below queries,<p>card_name:poll2choice_text_only<p>card_name:poll3choice_text_only<p>card_name:poll4choice_text_only<p>card_name:poll2choice_image<p>card_name:poll3choice_image<p>card_name:poll4choice_image<p>On the mobile app, you can just turn off your data&#x2F;WiFi and select one of the choices, you&#x27;ll be able to see the results for a moment.