ani-memes / AMII

A plugin that adds Anime Memes to your JetBrains IDEs
https://plugins.jetbrains.com/plugin/15865-amii
Apache License 2.0
271 stars 15 forks source link

Feature-request: Copy the link on pressing the meme with right button of the mouse #139

Closed Dragon-0609 closed 2 years ago

Dragon-0609 commented 2 years ago

I'm glad you added the feature that displays the source of a meme.

In this request what I want?

Displaying the source of the meme is very cool, but there's some memes, that is unknown. Sometimes, I try to find info about source of unknown memes, but in amii-assets.unthrottled.io I can distinguish memes with unknown source from known source by clicking through all of them and checking if they have Unknown female. This is not very convenient. Sometimes I see in the IDE a meme that I would like to watch its anime, but it has unknown source, so it's impossible. It would be cool if I can get direct link to its page in amii-assets.unthrottled.io by clicking right button of the mouse. By that it would be much easier to find infos of memes.

Dragon-0609 commented 2 years ago

Or, if the meme has unknown source, put a text Copy link next to Stop Showing Info.

Unthrottled commented 2 years ago

@Dragon-0609 If you ever go to a link directly does this happen to you?

image

Sample: https://amii-assets.unthrottled.io/assets/view/d9e6e0126e9cf8ca543a1ca26c9b176c

Dragon-0609 commented 2 years ago

If you ever go to a link directly does this happen to you?

It happened when I had opened it by Open in new tab. But if I open the main page just by clicking on it, it is opened immediately. Can't you add a script to redirect from the main page? For example: https://amii-assets.unthrottled.io/?redirect=<id of meme: 'd9e6e0126e9cf8ca543a1ca26c9b176c' or 'assets/view/d9e6e0126e9cf8ca543a1ca26c9b176c'> If you redirect from the main page, I'm sure it will be opened properly.

Unthrottled commented 2 years ago

Ah, the issue is in some of the rendering code. It is a single page application (eg the same index.html is used for all routes), I just didn't do enough of a good job to handle loading the app on that route. Will let you know when is fixed.

Dragon-0609 commented 2 years ago

Sometimes it is a white screen, sometimes it is opened properly. Anyway, now it will be much easier to find info about unknown memes for me. Thanks.

Unthrottled commented 2 years ago

@Dragon-0609 Fairly confident that I fixed the white screen issue, let me know if it happens to you again. If it does, could you make sure that the browser hasn't cached an older version of the content?