Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save theseanl/a105f3ffbbf9a34d2c0cf54cca406289 to your computer and use it in GitHub Desktop.
Save theseanl/a105f3ffbbf9a34d2c0cf54cca406289 to your computer and use it in GitHub Desktop.
github-show-recent-updated-issues-by-default.user.js
// ==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