Created
December 7, 2017 09:01
-
-
Save theseanl/a105f3ffbbf9a34d2c0cf54cca406289 to your computer and use it in GitHub Desktop.
github-show-recent-updated-issues-by-default.user.js
This file contains 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 GitHub Show Recent Updated Issues By Default | |
// @namespace GitHub | |
// @description GitHub Show Recent Updated Issues By Default | |
// @match https://github.com/* | |
// @version 0.0.0 | |
// @grant none | |
// @run-at document-body | |
// ==/UserScript== | |
var selector = 'a.reponav-item[href$="/issues"]'; | |
var callback = function() { | |
var item = document.querySelector(selector); | |
if (item) { | |
item.href += '?utf8=✓&q=is%3Aissue sort%3Aupdated-desc'; | |
} | |
}; | |
callback(); | |
(new MutationObserver(callback)).observe(document.body, { | |
childList: true, | |
subtree: true | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment