Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- First prompt:
- Can you make a firefox extension for me?
- The requirements are:
- * 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,
- * when a date is clicked on, it takes me to that web.archive.org date of the page.
- The API for web.archive.org is as follows:
- "Basic Usage
- The most simple query and the only required param for the CDX server is the url param
- * http://web.archive.org/cdx/search/cdx?url=archive.org
- 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.
- The columns of each line are the fields of the cdx. At this time, the following cdx fields are publicly available:
- ["urlkey","timestamp","original","mimetype","statuscode","digest","length"]
- It is possible to customize the Field Order as well.
- The the url= value should be url encoded if the url itself contains a query.
- All other params are optional and are explained below.
- For doing large/bulk queries, the use of the Pagination API is recommended."
- An example link of with a timestamp for the page example.com is: "https://web.archive.org/web/20241103153606/example.com"
- Second prompt:
- I don't think chrome.tabs from popup.js should work - this should be a firefox extension?
- Third prompt:
- How to transform response.json() into the dates?
- Fourth prompt:
- 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