Welcome to Blanket Edge Repairs! Welcome to orhie.com, a place to talk through blanket edge repairs in detail. Whether you are examining worn grain, reworking an unraveling border, or weighing binding widths and stitch spacing, your questions and notes are welcome here.

auto-scrolls until the page stops growing, then prints every unique facebook reel ID to the console

A

Austin Songer, CISSP

Guest
photos.js

This file contains hidden or 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
Show hidden characters

(() => {
let last = 0;
const timer = setInterval(() => {
window.scrollTo(0, document.body.scrollHeight);
if (document.body.scrollHeight === last) {
clearInterval(timer);
const ids = [...document.querySelectorAll('a[href*="/photo"], a[href*="fbid="]')]
.map(a => {
const fromPath = a.href.match(/\/photos?\/(\d+)/)?.[1];
const fromQuery = a.href.match(/[?&]fbid=(\d+)/)?.[1];
return fromPath || fromQuery || null;
})
.filter(Boolean);
console.log([...new Set(ids)].join('\n'));
}
last = document.body.scrollHeight;
}, 1500);
})();
unique-facebook-ids.js

This file contains hidden or 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
Show hidden characters

let last = 0;
const timer = setInterval(() => {
window.scrollTo(0, document.body.scrollHeight);
if (document.body.scrollHeight === last) {
clearInterval(timer);
const ids = [...document.querySelectorAll('a[href*="/reel/"]')]
.map(a => a.href.match(/\/reel\/(\d+)/)?.[1])
.filter(Boolean);
console.log([...new Set(ids)].join('\n'));
}
last = document.body.scrollHeight;
}, 1500);
 
Top