+ Add github-issue-comments-editor-plus.user.js - #38
Conversation
|
Hi @Hansimov! Any reason you aren't hosting this userscript yourself? I didn't write it, so it'd be troublesome for me to maintain it. I do like the concept though! I also have some feedback/comments about the script:
|
|
Hi, @Mottie !
I thought that it would be easier for someone to find such a userscript after he discovers your repository.
I have not written any userscript before, so I use this line in your
I will try this later.
Sorry for that ugly design :p.
I keep the
I have not encountered this problem. What I get is always like this: I guess that it might depend on platforms, devices or browser versions.
I also note this and write it in the comment of my codes. You are so kind to test my userscript and give so many useful and important suggestions. |
Sure! Those userscripts are actually all mostly written by me as well. They just don't live in this repository.
Actually, nevermind... you're right, I thought I switched from svg to using a png, but it was actually the other way around. I'm having an "off" day.
The design isn't ugly, it's just that messing with GitHub's content width usually messes up a bunch of stuff. That's why I suggested separating it from your preview userscript.
I actually added it when I first started testing and yeah, a bunch of JS errors popped up, so I quickly removed it.
For inspiration, take at look at https://github.com/DrewML/octo-preview - it's a chrome extension that does something very similar to your userscript. He actually uses GitHub's API to render the markdown; but in his case you'd run into the API rate limits pretty quickly.
|
|
Hi, @Mottie! I have hosted this userscript on this repo in my GitHub. The link you suggested (https://github.com/DrewML/octo-preview) inspires me and makes me have the idea that create a brand-new preview renderer instead of suffering from the original one. So an important improvement the userscript v1.1 is that I create a new preview renderer, using markedjs, which supports GitHub Flavored Markdown (GFM) used in the GitHub issues, wikis or pull requests. With this new preview renderer, we will no longer suffer from the annoying Also, when we use the original GFM renderer, it seems that it would send requests to the server each time when we click the preview button, so that sometimes it will stop at the Currently, the only known flaw of the new renderer is that it cannot render I have listed a lot on the |
|
Hi @Hansimov. I like your concept a lot.
[1] https://stackoverflow.com/questions/7591087/how-does-github-change-the-url-without-reloading-a-page |
|
You can replace the emoji's yourself with a bit of regex and this JSON - https://api.github.com/emojis |
|
Hi, @darkred !
Yes, I noticed this yesterday. I will apply the script to
Wow! This problem has confused me for days. I will have a try at the mutation library. Hi, @Mottie !
OK, I will try this. It may take some time to add this feature. Thank you for all of your suggestions! |
|
Great work! |



I add a new userscript
github-issue-comments-editor-plus.user.js.This userscript works at
https://github.com/*/issues/*.Main features of this userscript:
WriteandPreviewside by side at the same timeforkbutton)Todo:
WriteandPreviewcannot be displayed simultaneously currently.