Closed MichielDx closed 6 years ago
Feel free to refactor this 😉 Not the best code
Hi @MichielDx
I have viewed your PR, and I think there is too many similar code.
In my opinion, I suggest you get window.location.href
or window.location.domain
to determine which CSS selector should be used. Then, run domain-specific function.
Just reduce duplicate code as more as possible, move them to a separate new function. 👍
Hey, I would do that but I'm quite busy at the moment. You mind taking a look at it?
Sure. I will do it.
How hard would it be to support not only gitlab.com, but also other self-hosted installations of Gitlab, Gogs, and Gitea? This is very similar to #2.
(The octotree add-on also is wrestling with this issue for Firefox, see https://github.com/buunguyen/octotree/issues/275)
Hi @evaryont It seems that there is no conclusion yet. This PR could only support some specific domains.
4