gist raw perm HEAD userscripts.org #130781
When you install user.js strongly recommends on userscripts.org. NOT HERE.
Visit Gist and see 'raw' link, It's including SHA-1 long hash name like this.
https://gist.github.com/raw/2370972/47150711fedb7375d19d761ab122485b8105678d/gist-raw-perm-HEAD.user.js
This user.js provide 'HEAD' links. It's takes shrinked permanent raw link and shrinked named raw link when you browse Gist files.
True Permalink: This is absolutery permanent link but it's always filetype: txt.
https://raw.github.com/gist/2370972/
Almost Permalink: This is almost permanent link. It's strict filetype by extension. This link broken when filename changed.
https://raw.github.com/gist/2370972/gist-raw-perm-HEAD.user.js
This link most useful for install user.js from Gist.
HEAD can accessible 1st file only. That is Gist API constraints.
e.g. https://gist.github.com/890279/
Access to raw: https://raw.github.com/gist/890279/. Expected https://raw.github.com/gist/890279/simple320_320.png, but actual API return 2nd text file data.
Multifiles Gist has problem. Gist API is not provide true permalink(called HEAD) for 2nd or more files.
Include content and history. it's too long too much than v1(closed).
e.g. https://gist.github.com/2370972
- GET 'raw' => HTTP 302
https://gist.github.com/raw/2370972/2370972/47150711fedb7375d19d761ab122485b8105678d/gist-raw-perm-HEAD.user.js
- => HTTP 200 OK
https://raw.github.com/gist/2370972/2370972/47150711fedb7375d19d761ab122485b8105678d/gist-raw-perm-HEAD.user.js
Base code is small Bookmarklet, you can see based rev.. Latest rev. permalink is gist raw perm HEAD - Hatena::Let.
The new Gist broke your script \( ><)シ