Created
January 6, 2015 03:50
-
-
Save kokdemo/b3e1737702534b8bd00e to your computer and use it in GitHub Desktop.
一个用于快速follow dribbble上人的脚本,当你在看一个人的following 的时候可以使用
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
var array= $('.player-cards').children(); | |
var length = array.length; | |
for(i=0;i<length;i++){ | |
var url = 'https://dribbble.com'+$(array[i]).children('.player-info').children('.follow-prompt').children('.follow').attr('href'); | |
console.info(url); | |
$.post(url); | |
} | |
var weburl = window.location.href; | |
var page = parseInt(weburl.split('=')[1])+1; | |
console.info(page); | |
window.location.href=weburl.split('=')[0]+"="+page; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment