Raw Source
Jekyll / nextcloud_directAlbums

// ==UserScript==
// @name            nextcloud_directAlbums
// @namespace       0x4a.net
// @version         0.1.0
// @description     show album view directly instead of photos (which does not adhere to .nomedia files)
// @author          Daniel Jackel
// @license         MIT
// @include         https://your.nextcloud.tld/index.php/apps/photos/*
// @icon            https://nextcloud.com/wp-content/themes/next/assets/img/common/favicon.png
// @downloadURL     https://gist.github.com/0x4a/3b8228d2b5a74c4b51ab450630cae4cb

// @run-at          document-end
// ==/UserScript==

if (location.pathname == "/index.php/apps/photos/") {
  location.pathname = "/index.php/apps/photos/albums/";
}

document.querySelector('li.app-navigation__photos').style.display = "none";