Created
July 13, 2016 12:45
-
-
Save sente/b7b8d6599e14b1aade35de3a8b973dd7 to your computer and use it in GitHub Desktop.
Automatically set CouchDB's "rows per page" to 100
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 Force CouchDB to show 100 results per page | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Stuart Powers | |
// @match http://*/_utils/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var script = document.createElement('script'); | |
script.textContent = "$('#perpage').val(100).trigger(\"change\");"; | |
(document.head||document.documentElement).appendChild(script); | |
script.parentNode.removeChild(script); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment