5 ms·
Ask HN: Know any other GitHub tricks like: ?ts=2
I discovered a long time ago that you could add the query param "?ts=2" to change the tab spacing when viewing a repo on Github. I couldn't find it documented anywhere or able to save as a default (when viewing random repos). I was curious if there are any others like this?
Here's an example, you can remove the ?ts=2 to see the original width.
https://github.com/kubernetes/kubernetes/blob/ec2e767e59395376fa191d7c56a74f53936b7653/pkg/controller/volume/persistentvolume/pv_controller.go?ts=2
- karmakaze 8y agoI've used the w=1 to ignore whitespace in diffs. Found a link [0] with some others. [0] https://blog.github.com/2011-10-21-github-secrets/ https://blog.github.com/2011-10-21-github-secrets/
- sbr464 8y agoThanks for sharing that link!
- boilerupnc 8y agoI've used ?sanitize=true to allow me to programmatically embed renderable SVG content from a repo into Github Markdown comments, etc ... Example: https://github.com/org/repo/raw/40082bd3f02dbeb17bd9f72660df06d6f470b4e8/some/path/foo.svg?sanitize=true https://github.com/org/repo/raw/40082bd3f02dbeb17bd9f72660df... Additional Discussion: https://github.community/t5/How-to-use-Git-and-GitHub/Embedding-a-SVG/td-p/2192 https://github.community/t5/How-to-use-Git-and-GitHub/Embedd...