sbl not working with javascripu
I have JS that will write to the page the actual URLs that the images found in google image search reside on.
javascript:var%20d=document,%20fnd=0;if(d.links){for(var%20i=0;i<d.links.length;i++){var%20l=d.links[i];var%20lx=l.href.match(/imgrefurl=(.*?)\&/);if(lx%20&&%20lx[1]){var%20e=document.createElement('A');e.target='_blank;';e.href=decodeURIComponent(lx[1]);e.innerHTML=e.href+'<br></d>';l.parentNode.parentNode.appendChild(e);fnd++;}}}void%200;
this works when entered in the address bar, but does not when using the sbl bookmarklet
-
Adminjaden (Owner, Shortmarks) commented
Adding Javascript to sbl can be tricky because of the need to escape characters. sbl doesn't do that automatically at the moment.