Bookmarklet that returns a string of text that uniquely identifies the current webpage. The string can be used as a roughly self-source-citing filename, helpful for naming media files saved from the web: images, video, audio, etc.
Generally the author is the first part of the string, to help you group items by author.
Page | String |
---|---|
Reddit post | [username] [post ID] |
Reddit comment | [username] [post ID] [comment ID] |
YouTube | [channel name] [video ID] [video title] |
DeviantArt | [url with / each replaced with a space] |
Instagram* | [username] [post ID] |
[name] [url with www.facebook.com , / , and ? each replaced with a space] |
* After exiting the bookmarklet prompt, you will immediately be taken to the direct URL of the media file.**
** Why? Because this site does not let you to easily save the media file from your browser via right-click > Save.
- Copy everything in pageid.js.
- Paste into your favourite JS minifier (I use DuckDuckGo's), and copy the minified code.
- Create a new bookmark on the bookmarks bar of your browser. You should see a dialog box.
- Paste the code in the URL/location field.
- Enter whatever you like in the name field, e.g. "id".
- Done/OK.
- Go to a single media page (not a front page, news feed, etc.) that this bookmarklet supports.
- Click on the bookmarklet. You've got a page ID string.
- Press Ctrl-x or Ctrl-c to copy the selected string.
- Press either Enter/Esc or click either OK/Cancel, doesn't matter.
- Do as you wish with the copied string!
- Context (i.e. the site name) and non-context versions?
- Check if anything's broken after all these years