Created
October 25, 2014 04:48
-
-
Save soulteary/b98181e7c4118a5dd47e to your computer and use it in GitHub Desktop.
auto-Weibo-Screen
This file contains hidden or 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
| /** | |
| * 大屏幕值守太蛋疼了 | |
| */ | |
| setTimeout(function () { | |
| console.log('自动发微博的小苦逼...'); | |
| var elems = document.getElementById('box_audit'); | |
| if (elems) { | |
| elems = elems.getElementsByTagName('a'); | |
| for (var i = 0, j = elems.length; i < j; i++) { | |
| var target = elems[i].onclick; | |
| if (target && target.toString) { | |
| var accept = target.toString().indexOf('newagree') > -1; | |
| if (accept) { | |
| target.call(null); | |
| } | |
| } | |
| } | |
| } | |
| setTimeout(arguments.callee, 500); | |
| }, 500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@zzz6519003 給你謝了一個有Comment的.