https://github.com/unforswearing/google-doc-url-converter
A bookmarklet to convert the url of any google doc to the shorter "openid" url
https://github.com/unforswearing/google-doc-url-converter
bookmarklet google-docs
Last synced: 22 days ago
JSON representation
A bookmarklet to convert the url of any google doc to the shorter "openid" url
- Host: GitHub
- URL: https://github.com/unforswearing/google-doc-url-converter
- Owner: unforswearing
- Created: 2020-09-21T03:28:10.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-21T03:29:25.000Z (over 4 years ago)
- Last Synced: 2025-02-04T22:31:24.994Z (3 months ago)
- Topics: bookmarklet, google-docs
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A quick hack to convert a standard Google Doc editing url to the slightly more pleasant `open?id=` for sharing or adding to Google Forms.
In other words, convert the urls from
> https://docs.google.com/document/d/0a1b2c3d4e5f6g7h8i/editto
> https://docs.google.com/open?id=0a1b2c3d4e5f6g7h8i
Why? I helped maintain an intranet / LMS at my org and we use a lot of Google Docs and Forms. We preferred to share the `open?id=` urls as they are shorter and look a bit better in Google Form description fields. This bookmarklet is also faster than clicking the "Share" button and copying the link. YMMV.
I currently use this as a bookmarklet. [Here is the minified version of the `toOpenIdUrls` function](https://gist.githubusercontent.com/unforswearing/d7f4def8e87bbace37774ecf932e816b/raw/aa72f31648dffae3d4f9b7f02c8be779e4aa2f45/toOpenIdUrl_min.js).
This script was [originally posted as a gist](https://gist.github.com/unforswearing/d7f4def8e87bbace37774ecf932e816b)