Github Commented Issues

Show your commented issues on github easily.

As of 2018-02-03. See the latest version.

// ==UserScript==
// @name Github Commented Issues
// @namespace Github Commented Issues
// @description Show your commented issues on github easily.
// @match https://github.com/issues
// @match https://github.com/issues/assigned
// @match https://github.com/issues/mentioned
// @author https://github.com/jiacai2050
// @version 0.1.1
// @grant none
// ==/UserScript==

function addCommentedBtn(){
  var mentionedBtn = document.querySelector('#js-pjax-container > div > div.subnav > div.subnav-links.float-left > a:nth-child(3)')
  var mentionedFilter = mentionedBtn.getAttribute("href");
  var commenterFilter = mentionedFilter.replace('+mentions', '+commenter') + " sort:updated-desc";
  mentionedBtn.insertAdjacentHTML('afterend', `<a class="js-selected-navigation-item subnav-item" role="tab" href="${commenterFilter}">Commented</a>`);
};

addCommentedBtn();  
长期地址
遇到问题?请前往 GitHub 提 Issues。