Advertisement
Guest User

Untitled

a guest
Nov 8th, 2024
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. First prompt:
  2.  
  3. Can you make a firefox extension for me?
  4. The requirements are:
  5. * I press on the extension and it opens a list of clickable archival dates from web.archive.org for the page that I am currently on,
  6. * when a date is clicked on, it takes me to that web.archive.org date of the page.
  7.  
  8. The API for web.archive.org is as follows:
  9. "Basic Usage
  10. The most simple query and the only required param for the CDX server is the url param
  11. * http://web.archive.org/cdx/search/cdx?url=archive.org
  12. The above query will return a portion of the index, one per row, for each 'capture' of the url "archive.org" that is available in the archive.
  13. The columns of each line are the fields of the cdx. At this time, the following cdx fields are publicly available:
  14. ["urlkey","timestamp","original","mimetype","statuscode","digest","length"]
  15. It is possible to customize the Field Order as well.
  16. The the url= value should be url encoded if the url itself contains a query.
  17. All other params are optional and are explained below.
  18. For doing large/bulk queries, the use of the Pagination API is recommended."
  19.  
  20. An example link of with a timestamp for the page example.com is: "https://web.archive.org/web/20241103153606/example.com"
  21.  
  22. Second prompt:
  23.  
  24. I don't think chrome.tabs from popup.js should work - this should be a firefox extension?
  25.  
  26. Third prompt:
  27.  
  28. How to transform response.json() into the dates?
  29.  
  30. Fourth prompt:
  31.  
  32. The date string is in this format "20240710080500" - how to convert it to a locale string?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement