Skip to content

Instantly share code, notes, and snippets.

@0x4a
Last active July 20, 2020 21:29
Show Gist options
  • Save 0x4a/3b8228d2b5a74c4b51ab450630cae4cb to your computer and use it in GitHub Desktop.
Save 0x4a/3b8228d2b5a74c4b51ab450630cae4cb to your computer and use it in GitHub Desktop.
#userscript to show album-view directly instead of photos in #nextcloud
// ==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";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment