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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Proof-of-Work Vote counter widget

1 点作者 indutny将近 8 年前

1 comment

ic4l将近 8 年前
Interesting but can still be spammed, we need both techniques in play. This plus cookie&#x2F;ip tagging.<p><pre><code> for (let i = 0; i &lt; 20; i++) (() =&gt; { const elem = document.querySelector(&#x27;.votewdgt&#x27;); let widget = new VoteWidget(elem); function vote () { console.log(&#x27;voted&#x27;); widget._state.voted = false; widget.vote(vote); } vote(); })()</code></pre>