Git Product home page Git Product logo

github-toc's People

Contributors

aensley avatar arthurhammer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

github-toc's Issues

Appears to be broken

Apparently, Github has changed the markup somehow, however, the button is not appearing any more since a couple of months.

Toc not appearing when editing wiki pages

Looks like this was introduced in commit c96cde0. When editing a wiki page, there is no wiki-body element, only wiki-wrapper and wiki-content.

A fix for this needs to make sure the fix for #2 isn't reverted.

Request Mozilla Add-ons full review

Update: v0.2.5 passed full review with the following notes from the reviewer:

Please note the following for the next update:

  1. Using innerHTML to modify a document causes the entire document to be re-parsed, which is inefficient and has critical drawbacks, including invalidating any JavaScript reference to replaced DOM nodes, clearing any JavaScript properties and event listeners on replaced DOM nodes, and re-executing any script tags in the changed markup, and causing said scripts to fail if they rely on document.write.
    https://developer.mozilla.org/en/XUL_School/DOM_Building_and_HTML_Insertion

Additionally, due to both security and performance reasons (can be 100s of times slower), innerHTML (or similar method of converting strings to DOM e.g. outerHTML, insertAdjacentHTML, parseFromString, createContextualFragment, JQuery append/prepend/appendTo/html/before/after/insertBefore/insertAfter) should not be set using dynamic values. This can lead to security issues or fairly serious performance degradation.

For inserting text, textContent (or JQuery text) or createTextNode() should be used instead of innerHTML.
For inserting HTML, the safer method is to use createElement(), textContent, appendChild() instead of innerHTML.
Removing the innerHTML will improve add-on's prospect of approval.

These should be tracked and fixed.

Support for toc on issues page

Feature request?

Could it be a good idea to support the ToC on issues page?

Reason

Because some love to write something on issue page, of course, on the first block of issue page

And

If it support on gists, there is no reason to not support on issue page

😊 thanks for your plugin, do love it

Port Firefox version to WebExtensions

The older Mozilla Add-on SDK we are currently using is being phased out in favor of the new WebExtensions API.

The Firefox version should be ported to this new API. The good thing is that WebExtensions mostly resemble Google Chrome extensions which should make porting easy.

Todo:

  • Find minimum version of Firefox we can support
    • As far as I understand it this would be 42.0. We'll see.
  • Update build docs

Add support for other URLs

Thanks for the useful extension! Would be even more useful if I could apply it when browsing GitHub Enterprise sites. I can manually unpack the plugin and add URLs to the Chrome config, but if this could be a native setting, it would be great.

Toc button and back links not right aligned

Problem:

  • Toc button is not right aligned on the file actions bar. This only happens on main repo pages.
  • Backlinks are not right aligned. This happens everywhere.

Reason:

GitHub changed the right css class to float-right. To fix this we'll probably use a custom class to avoid the same issue in the future.

Screenshot:

screenshot - 2016-09-05 10 27 36

Version:

Version: 0.2.4
Browsers: all

Update the Safari version

The Safari version is currently stuck in limbo on 0.2.3. My Safari certificate expired so I can’t release a new build. At the same time,SafariUpdate.plist links to 0.2.4 prompting Safari users to update to a nonexistent version.

screenshot - 2016-09-06 12 59 20

Either:

  • get a certificate and release a new build, or
  • revert SafariUpdate.plist to 0.2.3

Support for a search bar

It would be cool if the table of contents had a search bar to quickly filter headings. Something like this:

screenshot - 2016-09-09 10 36 09

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.