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.
cf. https://gist.github.com/890279/
See raw data in https://raw.github.com/gist/890279/. Expected https://raw.github.com/gist/890279/simple320_320.png but actual API return 2nd file data. It's same as https://raw.github.com/gist/890279/gistfile1.txt.
Multifiles Gist has ploblem. Gist API not provide true permlink(bee called HEAD) for 2nd or more files.
Very simple.
Include content and history. It's too long too much.
This behavior on HERE.
- GET 'raw' return 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. HERE on Hatena::Let. Lateset rev. Permalink is gist raw perm HEAD - Hatena::Let.
The new Gist broke your script \( ><)シ