Skip to content

Instantly share code, notes, and snippets.

@sente
Created July 13, 2016 12:45
Show Gist options
  • Save sente/b7b8d6599e14b1aade35de3a8b973dd7 to your computer and use it in GitHub Desktop.
Save sente/b7b8d6599e14b1aade35de3a8b973dd7 to your computer and use it in GitHub Desktop.
Automatically set CouchDB's "rows per page" to 100
// ==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