pastebin - collaborative debugging tool
bookmarklet.kpaste.net RSS


IABML
Posted by Anonymous on Mon 6th Jan 2020 20:35
raw | new post

  1. var theURL=window.location.href;
  2. var theSpot=theURL.indexOf(".jp2");
  3. var newURL=theURL.substring(0,theSpot-4);
  4. var theNumber=theURL.substring(parseInt(theSpot)-4,parseInt(theSpot));
  5. theNumber=parseInt(theNumber)+1;
  6. theNumberStr=("0000" + theNumber).slice(-4);
  7. newURL=newURL+theNumberStr+theURL.substring(theSpot);
  8. window.location.href=newURL;

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at