Giter Site home page Giter Site logo

Comments (6)

Konfekt avatar Konfekt commented on June 11, 2024

Thank you for this script. It is particularly helpful for navigating HTML compiled from markdown files (by pandoc --toc --from=markdown --to=html ...).

from code.

joeytwiddle avatar joeytwiddle commented on June 11, 2024

I'm glad you like the script! But what precisely is the problem?

  1. The TOC cannot be minimized when viewing an offline page
  2. The TOC can be minimized, but that state is forgotten when you open the next page

If the problem is number 2, I don't think we can remember the state in the file:// scheme. But I could add a boolean to the script. You could change the boolean from true to false so the TOC will be minimized be default. Would that be ok? (Are you able to edit the script you installed?)

from code.

Konfekt avatar Konfekt commented on June 11, 2024

Yes, it is curiously 1.. Yes, it would be nice to be minimized by default. Yes, I can edit it.

from code.

joeytwiddle avatar joeytwiddle commented on June 11, 2024

I am using Tampermonkey under Chrome. I added @include file://* to the script, and I also had to "Allow access to file URLs" in the extension's settings.

But after that it worked fine for me! What platform are you using?

Anyway the new version 1.0.4 lets you set startRolledUp = true at the top of the script. I hope that will work for you!

If not, please take a look in the console (Ctrl-Shift-J for Chrome, Ctrl-Shift-K for Firefox) and let me know if there are any red errors. Cheers!

from code.

Konfekt avatar Konfekt commented on June 11, 2024

I am using Firefox 52.8.0 (64 bits) with GreaseMonkey 3.17 and ToC EveryWhere 1.05 with startRolledUp = true. The consolse says

[TOCE] Adding fallback implementation of GM_set/getValue  Table_of_Contents_Everywhere.user.js:53:3
[TOCE] Error! HierarchyRequestError: Node cannot be inserted at the specified point in the hierarchy  Table_of_Contents_Everywhere.user.js:53:3

from code.

Konfekt avatar Konfekt commented on June 11, 2024

Well, under the latest Firefox 60 the same problem with the latest Greasemonkey.

from code.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.