2

I had selected "Allow access to file URLs" option like in this Stack Overflow question.

after select "Allow access to file URLs" option

After I added a custom Javascript highlightjs-line-numbers.min.js in the “Asciidoctor.js Preview” Google Chrome Extension. I found a difficult to remove the custom Javascript because I want to display line number to the Asciidoctor Source Code Block. The problem appear when I add custom JavaScript via "Options" link of the extension.

How to remove the previously added custom javascript in Ascidoctor.js Preview options, for example highlightjs-line-numbers.min.js ? But I can remove the previously added "a custom cascading stylesheet (css)". In the picture, you can see Remove button at the right side of Theme/Stylesheet combo box. cannot remove custom javascript

Am I missing something?

7
  • 2
    Why don’t you just uninstall Asciidoctor.js and reinstall it? Commented Aug 27 at 10:40
  • Oh I see. Yes and thank you that can be fix the problem. But if I want to add other custom js. So I will uninstall and reinstall it every times? Commented Aug 27 at 10:54
  • No idea why there are off-topic close votes, this is very clearly a question about a browser extension and its UI... Anyways it could also be closed for "needs more clarity" and "needs more focus" reasons. 1st because you're asking us why some random custom highlightjs-line-numbers.min.js didn't work without showing us the contents - how are we supposed to know? And the 2nd because you are asking 2 separated clearly different questions. Please dit the question to make it more focus and detailed. Commented Aug 27 at 13:19
  • Have you looked to see if the plugin has a documented way to remove custom JS you've added? Commented Aug 27 at 13:57
  • Also, welcome to Superuser. Please note that, because we need you to be able to select a single posted answer as the correct one, each post should contain only a single question, along with enough information that it can be answered. Please choose one of your questions and EDIT your post to focus on just that one. While doing this, look through the plugin documentation to see if there's info on removing custom JS, and if there is, try it. Commented Aug 27 at 14:10

1 Answer 1

4

Per the documentation, and specifically comparing the Stylesheet and Javascript pages in the documentation, there should be a Remove button/control by the Javascript drop-down, but there clearly isn't.

Removing the plugin, as suggested, is an effective workaround, but you should probably A) confirm you're using the latest/current version of the plugin, and B) report this issue on the plugin Github Issues page.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.