Add Gist link on GitHub profile page
// ==UserScript==
// @name gist link
// @namespace https://gist.github.com/tkrkt
// @description Add Gist link on profile page
// @include https://github.com/*
// @exclude https://github.com/*/*
// @version 2
// @grant none
// ==/UserScript==
var text = `View ${location.pathname.slice(1)} on Gist`;
var html = `<a class="btn btn-block" style="margin-top:10px;"href="https://gist.github.com${location.pathname}" title="${text}">${text}</a>`;
var container = document.querySelector('.user-profile-following-container');
container.innerHTML += html;