Forked from erikvold/gistGithubAddPaginationToTop4MyGists.user.js
Created
April 4, 2012 12:15
-
-
Save rudolph9/2300732 to your computer and use it in GitHub Desktop.
This userscript will add the pagination for the gist.github.com My Gists page.
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 Add Pagination For My Gists To Top | |
// @namespace gistGithubAddPaginationToTop4MyGists | |
// @include /^http:\/\/gist\.github\.com\/mine([?#].*)?$/i | |
// @include http://gist.github.com/mine* | |
// @match http://gist.github.com/mine* | |
// @datecreated 2010-03-21 | |
// @lastupdated 2010-03-21 | |
// @version 0.1 | |
// @author Erik Vergobbi Vold | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @description This userscript will add the pagination for the gist.github.com My Gists page. | |
// ==/UserScript== | |
(function(d){ | |
var list=d.getElementById('files'); | |
if(!list) return; | |
var pagination=d.getElementsByClassName('pagination')[0]; | |
if(!pagination) return; | |
list.parentNode.insertBefore(pagination.cloneNode(true),list); | |
})(document); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment