Created
September 17, 2018 11:58
-
-
Save aal89/ad259313f3a73561c20ba630b2a6c2a7 to your computer and use it in GitHub Desktop.
TamperMonkey script to add a 1000 documents per page option for CouchDB.
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 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