Skip to content

Instantly share code, notes, and snippets.

@sgraber
Created October 9, 2010 02:18
Show Gist options
  • Save sgraber/617814 to your computer and use it in GitHub Desktop.
Save sgraber/617814 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Plone Show All
// @namespace http://plone.org
// @description Forces folder_contents view to always show all content as opposed to batching.
// @include http://*advancedaquarist.com/*
// @include http://*reefs.org/*
// @include http://*aquaristcourses.org/*
// ==/UserScript==
h = window.location.href;
if (/folder_contents$/.test(h)){
h=h.replace('/@@folder_contents', '/@@folder_contents?show_all=true');
h=h.replace('/folder_contents', '/@@folder_contents?show_all=true');
window.location.href = h;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment