Created
February 9, 2012 05:12
-
-
Save Gohan/1777507 to your computer and use it in GitHub Desktop.
呃,bilibili逆反弹幕
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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