Open Vikuuu opened 3 weeks ago
Hi,
Since JS is alien to me, I just copy-pasted the code from the official repository, and the script just worked. Now comparing your code with the official one, I can see that you've made a few changes:
Your code:
var images = document.querySelectorAll(
'img[src$=".jpg"], img[src$=".jpeg"], img[src$=".png"]'
);
Official code:
images = document.querySelectorAll('img[src$=".jpg"], img[src$=".jpeg"], img[src$=".png"]');
You can see the difference? There are some more in your code. You can copy-paste the official script and see if it solves the issue.
As I click on Bookmark it this error shows up![image](https://github.com/PacktPublishing/Django-5-By-Example/assets/125040659/c068737c-bbc2-4c66-8acc-a77eb1a5e5e5)
and then it is not working as intended and i don't know what to do.
This is the
bookmarklet.js
code:Please help.