Comments (6)
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.
I'm glad you like the script! But what precisely is the problem?
- The TOC cannot be minimized when viewing an offline page
- 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.
Yes, it is curiously 1.
. Yes, it would be nice to be minimized by default. Yes, I can edit it.
from code.
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.
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.
Well, under the latest Firefox 60 the same problem with the latest Greasemonkey.
from code.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code.