Last active
July 20, 2020 21:29
-
-
Save 0x4a/3b8228d2b5a74c4b51ab450630cae4cb to your computer and use it in GitHub Desktop.
#userscript to show album-view directly instead of photos in #nextcloud
This file contains 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 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