Plotly offline html customization

I used to save graphs offline as html.

  1. By default graph is opened as “Compare data on hover” and i have to press button to change “Show closest data on hover”
  2. Due to multiline plot (more than 20 lines) the graph becomes unclear, how to switch off the view of specific lines?

If there is a way to change them?

Thank you.