Skip to content

Instantly share code, notes, and snippets.

@Gohan
Created February 9, 2012 05:12
Show Gist options
  • Save Gohan/1777507 to your computer and use it in GitHub Desktop.
Save Gohan/1777507 to your computer and use it in GitHub Desktop.
呃,bilibili逆反弹幕
for (i=0;i<Player.commentList.length;i++){
if(Player.commentList[i].mode != 8){
if(Player.commentList[i].txt.search("([逆反]向)|([渣垃拉啦哇呀压鸭吔蛤哈].*){3}") == -1){
Player.commentList[i].mode = 6;
} else{
Player.commentList[i].mode = 0;
}
if(Math.random() > 0.5){
Player.commentList[i].color = 0x000000;
}else{
Player.commentList[i].color = 0xffffff;
}
}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment