feat: implement Hitomi.la scraper with dynamic gg.js parsing and image proxy integration
This commit is contained in:
1 parent
18ea6596e5
commit
3bad81169e
21 files changed
+6824
-4
No files matched your search
@@ -0,0 +1,12 @@
|
||||
const hash = "4be1a80984f0d89c96b79f98929e0c374c1faba4ab26bbdfc54fc48f250e6ab6";
|
||||
var m = /(..)(.)$/.exec(hash);
|
||||
console.log("m:", m);
|
||||
console.log("m[2]+m[1]:", m[2]+m[1]);
|
||||
console.log("parseInt:", parseInt(m[2]+m[1], 16));
|
||||
|
||||
// common.js subdomain_from_url:
|
||||
var r = /\/[0-9a-f]{61}([0-9a-f]{2})([0-9a-f])/;
|
||||
var m_sub = r.exec("/"+hash);
|
||||
console.log("m_sub:", m_sub);
|
||||
console.log("m_sub[2]+m_sub[1]:", m_sub[2]+m_sub[1]);
|
||||
console.log("parseInt sub:", parseInt(m_sub[2]+m_sub[1], 16));
|
||||
Reference in new issue
Block a user