lowz1r
Incel
★★★★★
- Joined
- Jun 1, 2024
- Posts
- 13,039
And the users that you aren't following back...
I don't really care about people who don't follow back but I vaguely recall some users such as @VintageCarCoper saying they get pissed whenever they don't get followed back, so I figured there might be some users who want to see this list without going through the tedious process of manually checking them one by one.
How to use
Open inspect element on this page (which is usually the F12 shortcut), click on the console section, and paste the code from the spoiler below into the console and press enter.
Was there a point to making this? Probably not.
Why did I do it? Because I'm a fucking incel.
tagging @lazy_gamer_423 because I've seen him use inspect element before.
tagging @The Scarlet Prince because he made a thread on javascript before.
I don't really care about people who don't follow back but I vaguely recall some users such as @VintageCarCoper saying they get pissed whenever they don't get followed back, so I figured there might be some users who want to see this list without going through the tedious process of manually checking them one by one.
How to use
Open inspect element on this page (which is usually the F12 shortcut), click on the console section, and paste the code from the spoiler below into the console and press enter.
JavaScript:
if(!window.current_user)
window.current_user = $('nav .avatar').data('user-id');
function getList(data) {
var doc = $($.parseHTML(data.html.content.trim())[0]);
return doc.find('ol.block-body .block-row').map(function() {
var username = $(this).find('.username').text();
var user_id = $(this).find('.username').data('user-id');
var html = $(this).html().trim();
return { username, user_id, html };
}).toArray();
}
function getNext(type, page, list, cb) {
function onerror() {
console.log('retrying...');
setTimeout(function() {
getNext(type, page, list, cb);
}, 1000);
}
$.get('https://incels.is/members/'+window.current_user+'/'+type+'/page-'+page+'?_xfResponseType=json', function(data) {
if(data.status !== 'ok') {
onerror();
return;
}
var cur = getList(data);
if(cur.length) {
getNext(type, page+1, list.concat(cur), cb);
} else {
cb(list);
}
})
.fail(onerror);
}
console.log('fetching following list...');
getNext('following', 1, [], function(following) {
console.log('fetching followers list...');
getNext('followers', 1, [], function(followers) {
function diff(a, b) {
var seen = Object.create(null);
b.forEach(function(member) {
seen[member.user_id] = 1;
});
return a.filter(function(member) {
return !seen[member.user_id];
}).sort(function(a, b) {
return (a.username || '').localeCompare(b.username);
});
}
var brutal = diff(following, followers);
var grays = diff(followers, following);
function log(list) {
if(!list.length)
return 'No members in this list.';
return list.map(function(member) {
return '@' + member.username;
}).join(' ');
}
function display(list) {
if(!list.length)
return '<p>No members in this list.</p>';
return list.map(function(member) {
return member.html;
}).join('');
}
console.log("Members who aren't following you back\n\n" + log(brutal));
console.log("Members you aren't following back\n\n" + log(grays));
document.body.innerHTML = "<style>.contentRow { margin-bottom: 10px; } body { padding-left: 30px; }</style>";
document.body.innerHTML += "<h1>Members who aren't following you back</h1>";
document.body.innerHTML += display(brutal);
document.body.innerHTML += "<h1>Members you aren't following back</h1>";
document.body.innerHTML += display(grays);
document.body.innerHTML += "<h2>This script was created by some nigga named @lowz1r</h2><br>";
});
});
Was there a point to making this? Probably not.
Why did I do it? Because I'm a fucking incel.
tagging @lazy_gamer_423 because I've seen him use inspect element before.
tagging @The Scarlet Prince because he made a thread on javascript before.
Last edited: