Skip to content

Instantly share code, notes, and snippets.

GRAIN Data Cleaning

@beifler
beifler / pinterest-sort-likes.js
Created May 10, 2016 03:33 — forked from techslides/pinterest-sort-likes.js
Auto Sort Pinterest Pins by Likes
//Go to any page with pins (a board, your pins, search results, etc) and open JavaScript Console (Ctrl+Shift+J on windows OR option+command+J on mac) and paste in this code:
//sort by likes, adjust amount of pins/pages you want to collect first
var pages = 5;
var count = 0;
var mylist = [];
var timeout;
load();
function load(){
$(function () {
var $sections = $('.form-section');
function navigateTo(index) {
// Mark the current section with the class 'current'
$sections
.removeClass('current')
.eq(index)
.addClass('current');
// Show only the navigation buttons that make sense for the current section: