05-22-2015, 07:07 PM
Hi Guys,
I just want to share how to sort the pinterest result based on their repins count.
I think this will be useful if you need some viral ideas for your blog or facebook page.
You only need firefox browser. (not tested with Chrome)
Step by step
1. Open pinterest.com and login with your account.
2. Type keyword on search bar.
![[Image: result1.png]](https://salamposting.files.wordpress.com/2015/05/result1.png)
3. Press Ctrl+Shift+K
![[Image: result2.png]](https://salamposting.files.wordpress.com/2015/05/result2.png)
4. Copy the code below and paste it under prompt box. See the picture above.
5. Press enter, and boom!! All pins will sort by their repins count.
![[Image: result3.png]](https://salamposting.files.wordpress.com/2015/05/result3.png)
Please add reputation if this useful for you!![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)
![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)
![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)
I just want to share how to sort the pinterest result based on their repins count.
I think this will be useful if you need some viral ideas for your blog or facebook page.
You only need firefox browser. (not tested with Chrome)
Step by step
1. Open pinterest.com and login with your account.
2. Type keyword on search bar.
![[Image: result1.png]](https://salamposting.files.wordpress.com/2015/05/result1.png)
3. Press Ctrl+Shift+K
![[Image: result2.png]](https://salamposting.files.wordpress.com/2015/05/result2.png)
4. Copy the code below and paste it under prompt box. See the picture above.
Code:
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";
Code:
var script = document.createElement('script');script.src = "https://ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";document.getElementsByTagName('head')[0].appendChild(script);
var pages = 10;
var count = 0;
var mylist = [];
var timeout;
load();
function load(){
$('.Pin').each(function(){
mylist.push( $(this)[0] )
});
$(window).scrollTop( $(document).height() );
timeout = window.setTimeout(load, 4000);
count++;
if(count==pages){
finish();
}
}
function finish(){
window.clearTimeout(timeout)
console.log(mylist.length);
var list = mylist.filter(function(f){
if( $(f).find('.repinCountSmall').length>0 ){
return f;
}
});
console.log(list);
list.sort(function(a, b) {
var compA = Number( $(a).find('.repinCountSmall').text().trim() );
var compB = Number( $(b).find('.repinCountSmall').text().trim() );
return (compA == compB) ? 0 : (compA > compB) ? -1 : 1;
});
$(".Grid").before('<div id="organized"/>').remove();
$.each(list, function(idx, itm) {
$("#organized").append($(itm));
});
$('.Pin').css({'clear': 'both', 'position': 'static'});
}
5. Press enter, and boom!! All pins will sort by their repins count.
![[Image: result3.png]](https://salamposting.files.wordpress.com/2015/05/result3.png)
Please add reputation if this useful for you!
![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)
![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)
![Smile Smile](https://bestblackhatforum.com/images/newsmilies/smile.gif)