Skip to content

Commit

Permalink
Fix: LZString vm error
Browse files Browse the repository at this point in the history
  • Loading branch information
eight04 committed Jan 4, 2024
1 parent 2d12c65 commit 41a8c69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion comiccrawler/mods/seemh.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def init(self, html, url):
return
cryptojs = re.search(r'src="([^"]+?/crypt_\w+?\.js)"', html).group(1)
cryptojs = grabhtml(urljoin(url, cryptojs), referer=url)
self.vm = VM(f"window = self; {cryptojs}")
self.vm = VM(f"window = self; {cryptojs}; delete String.prototype.splic;")
self.vm.create()

def decompress_from_base64(self, data):
return self.vm.call("LZString.decompressFromBase64", data)
Expand Down

0 comments on commit 41a8c69

Please sign in to comment.