Javascript 试图消除twitter小部件中的回复和转发
我试图消除twitter小部件中的回复和转发。到目前为止,以下代码不起作用:Javascript 试图消除twitter小部件中的回复和转发,javascript,twitter,Javascript,Twitter,我试图消除twitter小部件中的回复和转发。到目前为止,以下代码不起作用: <script type="text/javascript"> new TWTR.Widget({ version: 2, type: 'search', search: 'blahblahblah', // This shows all tweets with the hashtag #blahblahblah. interval: 3000, title: '', subjec
<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>
从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>
新TWTR.Widget({
版本:2,
键入:“搜索”,
搜索:“blahblahblah”,//显示所有带有标签“blahblahblah”的tweet。
间隔时间:3000,
标题:“”,
主题:'',
宽度:“自动”,
身高:544,
主题:{
外壳:{
背景:"中交",,
颜色:“#ffffff”
},
推特:{
背景:“#ffffff”,
颜色:“#5e6a71”,
链接:“#aa0828”,
答复:错,,
转发:错误
}
},
特点:{
滚动条:false,
循环:对,
现场直播:没错,
hashtags:true,
时间戳:对,
阿凡达:没错,
行为:“默认”
}
}).render().start();
在这方面的任何帮助都将不胜感激。我找到了答案。在搜索小部件中,只需按如下方式设置搜索参数: 搜索:“发件人:@blahblahblah'
这将搜索查询限制为仅来自特定用户的tweet。我希望这对遇到这个问题的人有所帮助。要消除转发,请尝试在搜索字符串中添加“-RT” 只需将搜索查询设置为: “发件人:@blahblahblah-RT” 它将消除其他回复、转发和提及
我希望它能帮助你好的。因此,要求发生了变化。看起来团队想要使用标准配置文件小部件,但我认为他们遇到了速率限制问题,因为提要无法加载,并且firebug中出现了400错误。因此,我需要帮助设置缓存,就像twitter在这里建议的那样:。另外,有人知道如何设置测试版吗?谢谢