试图消除twitter小部件中的回复和转发

trying to eliminate replies and retweets in the twitter widget

本文关键字:回复 转发 小部 twitter      更新时间:2023-09-26

我正在努力消除twitter小部件中的回复和转发。到目前为止,以下代码不起作用:

从widget.js:的1967行开始

var F = /twitter'.com(':'d{2,4})?'/intent'/('w+)/,
    A = {
      tweet: true,
      retweet: false,
      reply:false,
      favorite: true
},

而这段代码在html页面的正文中,同样不起作用:

<script type="text/javascript">
new TWTR.Widget({
  version: 2,
  type: 'search',
  search: 'blahblahblah', // This shows all tweets with the hashtag #blahblahblah.
  interval: 3000,
  title: '',
  subject: '',
  width: 'auto',
  height: 544,
  theme: {
    shell: {
    background: '#cccccc',
    color: '#ffffff'
    },
    tweets: {
    background: '#ffffff',
    color: '#5e6a71',
    links: '#aa0828',
    reply:false,
    retweet:false
    }
  },
  features: {
    scrollbar: false,
    loop: true,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: true,
    behavior: 'default'
  }
}).render().start();
</script>

如有任何帮助,我们将不胜感激。

要消除转发,请尝试在搜索字符串中添加"-RT"。

我想明白了。在搜索小部件中,只需设置如下搜索参数:

搜索:"发件人:@blahbrahblah",

这将搜索查询限制为仅来自特定用户的推文。我希望这能帮助任何遇到这个问题的人。

只需将搜索查询设置为:

"发件人:@blahbrahblah-RT"

它将消除其他回复、转发和提及!

我希望它能帮助你