Skip to content

Instantly share code, notes, and snippets.

@kokdemo
Created January 6, 2015 03:50
Show Gist options
  • Save kokdemo/b3e1737702534b8bd00e to your computer and use it in GitHub Desktop.
Save kokdemo/b3e1737702534b8bd00e to your computer and use it in GitHub Desktop.
一个用于快速follow dribbble上人的脚本,当你在看一个人的following 的时候可以使用
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