Created
October 20, 2016 13:57
-
-
Save kangguru/f11876ed29c7157012166e9b60276354 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Edit Readme on Github | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author kangguru | |
// @include /https://github.com// | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (document.querySelectorAll("#readme > h3")[0]) { | |
document.querySelectorAll("#readme > h3")[0].innerHTML += "<a href='"+window.location.href+"/edit/master/README.md' class='btn btn-sm'>edit</a>"; | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment