Skip to content

Instantly share code, notes, and snippets.

@aal89
Created September 17, 2018 11:58
Show Gist options
  • Save aal89/ad259313f3a73561c20ba630b2a6c2a7 to your computer and use it in GitHub Desktop.
Save aal89/ad259313f3a73561c20ba630b2a6c2a7 to your computer and use it in GitHub Desktop.
TamperMonkey script to add a 1000 documents per page option for CouchDB.
// ==UserScript==
// @name Documents per page (1000 option)
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Adds a '1000' option for 'Documents per page' in CouchDB portal overview (localhost).
// @author Alex (https://github.com/aal89)
// @match http://127.0.0.1:5984/_utils/
// @grant none
// ==/UserScript==
(function() {
'use strict';
window.addEventListener('load', function () {
var select = document.getElementById("select-per-page");
var option = document.createElement("option");
option.text = "1000";
option.value = "1000";
select.appendChild(option);
console.log("Added the '1000' documents per page option!");
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment