Skip to content

Instantly share code, notes, and snippets.

Last active Dec 15, 2015
What would you like to do?
This basic GM script adds a "Pull requests only" tickbox to your dashboard issue pages on GitHub; clicking it hides non-PR issues. It doesn't work over pagination (without a refresh) or other things like that.
// ==UserScript==
// @name GitHub Assigned Issues Pull Requests tickbox
// @namespace github-assigned-issues-pull-requests
// @version 1.0
// @description Show only pull requests on the Assigned Issues dashboard page (e.g. or the similar org page)
// @match *://*
// @match *://*/dashboard/issues/*
// @require
// @author Matthew Somerville >>
// ==/UserScript==
$('.issues-list-options').append('<div class="button-group"><label><input type="checkbox" id="pull_requests_only" value="1"> Pull requests only</label></div>');
var lis = $('.mini-icon-issue-opened').add('.mini-icon-issue-closed').closest('li'),
count = $('.filter-item.selected span.count');
if ($(this).prop("checked")) {
var c = count.text();'c', c);
} else {;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment