Skip to content

Instantly share code, notes, and snippets.

@backflip
Last active February 28, 2026 08:50
Show Gist options
  • Select an option

  • Save backflip/bc703e2b500f94b6003eb923dc24cd76 to your computer and use it in GitHub Desktop.

Select an option

Save backflip/bc703e2b500f94b6003eb923dc24cd76 to your computer and use it in GitHub Desktop.
zvv.ch Print Bookmarklet
// Execute after manually expanding a search result
javascript:(function%20()%20%7B%20const%20selectedConnection%20=%20document.querySelector(%60.printable-connection-row%20%5Baria-expanded=%22true%22%5D%60%20);%20selectedConnection%20.querySelectorAll(%60%5Bclass%5E=%22summaryWrapper%22%5D%60).forEach((item)%20=%3E%20item.click());%20selectedConnection%20.querySelectorAll(%60%5Bclass%5E=%22Component-header%22%5D,%5Bclass%5E=%22Component-footer%22%5D,%5Bclass%5E=%22ConnectionDetailsLegendSection-header%22%5D,%5Bclass%5E=%22ConnectionDetails-footer%22%5D%60).forEach((item)%20=%3E%20item.remove());%20const%20wrapper%20=%20document.createElement(%22div%22);%20wrapper.setAttribute(%22id%22,%20%22zvv-timetable%22);%20wrapper.append(selectedConnection);%20document.body.innerHTML%20=%20%22%22;%20document.body.append(wrapper);%20%7D)();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment