commit
This commit is contained in:
24
Bomtoon_JS/get_count.js
Normal file
24
Bomtoon_JS/get_count.js
Normal file
@@ -0,0 +1,24 @@
|
||||
(() => {
|
||||
const count = document.querySelectorAll('div[class^="ImageContainer__Container"]').length;
|
||||
const existing = localStorage.getItem("divCountList") || "";
|
||||
localStorage.setItem("divCountList", existing + count + "\n");
|
||||
|
||||
console.log("✅ Count saved:", count);
|
||||
})();
|
||||
|
||||
|
||||
|
||||
|
||||
(() => {
|
||||
const data = localStorage.getItem("divCountList") || "";
|
||||
const blob = new Blob([data], { type: "text/plain" });
|
||||
const link = document.createElement("a");
|
||||
|
||||
link.href = URL.createObjectURL(blob);
|
||||
link.download = "div_counts.txt";
|
||||
document.body.appendChild(link);
|
||||
link.click();
|
||||
document.body.removeChild(link);
|
||||
|
||||
console.log("📦 File downloaded as div_counts.txt");
|
||||
})();
|
||||
Reference in New Issue
Block a user