Skip to content

Instantly share code, notes, and snippets.

@Lemmings19
Last active April 23, 2017 02:18
Show Gist options
  • Save Lemmings19/f7713acf7f5ff10dc57707afd6912f75 to your computer and use it in GitHub Desktop.
Save Lemmings19/f7713acf7f5ff10dc57707afd6912f75 to your computer and use it in GitHub Desktop.
Auto-expand Laravel's doc lists. Remove the ad.
// Add this to your browser with your favourite script addon/plugin and jQuery.
// They just did this annoying thing where they hide all the doc headings.
// How the hell am I supposed to CTRL+F on them now?
// May as well remove ads while we're at it.
// Auto-expand all doc listings. Haven't tested for negative side-effects.
$("h2").each(function () {
$(this).addClass("is-active");
});
// Hide the ad.
$(document).ready(function () {
$("#carbonads").remove();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment