mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 07:57:04 +03:00
This commit is contained in:
parent
dd073f0f34
commit
b732d0b6b9
@ -7,6 +7,12 @@ const PER_PAGE = 8;
|
|||||||
let currentPage = 1;
|
let currentPage = 1;
|
||||||
let linksData = [];
|
let linksData = [];
|
||||||
|
|
||||||
|
function extractReelId(url) {
|
||||||
|
// Example: https://www.instagram.com/reel/ABC123xyz/
|
||||||
|
const match = url.match(/instagram\.com\/reel\/([a-zA-Z0-9_-]+)/);
|
||||||
|
return match ? match[1] : null;
|
||||||
|
}
|
||||||
|
|
||||||
function loadLinks() {
|
function loadLinks() {
|
||||||
const cacheKey = `links_cache_page_${currentPage}_per_${PER_PAGE}`;
|
const cacheKey = `links_cache_page_${currentPage}_per_${PER_PAGE}`;
|
||||||
const cached = localStorage.getItem(cacheKey);
|
const cached = localStorage.getItem(cacheKey);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user