-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle Ctrl/Shift + click on "Random item" button #43
Comments
Oh, and it's a small nitpick, but I don't think "recycling" Unicode symbol is the clearest representation of a random element. I think either the gamedie (🎲) or twisted rightwards arrows(🔀) character would be easier for new users to understand |
Hey @nmussy, That's a good call, I can update that to a proper As for the icon, I initially wanted to use the I may be able to use the Dice icon that is currently used in the React version of the Collection. I'll poke around a bit and see what I can come up with. Thanks for the suggestions! |
Hey @salcido, Yeah, I suggested looking at the event properties because it seemed simpler/more efficient than pre-rendering the anchor with the correct URL. But if you can manage it, it'd also fix the context menu "Open And fair enough for the emoji forms, but you can always force the VS15 text variant by appending |
TIL. That's pretty cool! I messed around a bit with that but still wasn't able to force the plain text version. Think I'll make an SVG of the While looking into this I realized Discogs has a specific URL just for random items so I'm able to simplify the script quite a bit and ditch the old |
Ok, just published an update to address this! Going to close this ticket ✌️ |
Thanks!
…On Wed, Jul 31, 2019, 1:46 AM Matthew Salcido ***@***.***> wrote:
Ok, just published an update to address this! Going to close this ticket
✌️
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#43?email_source=notifications&email_token=AATDXYDKSV4JZ5KTVSON44LQCDHFJA5CNFSM4IDR3EZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3FUH4A#issuecomment-516637680>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATDXYC2ITVQA5H2L7RIY7DQCDHFJANCNFSM4IDR3EZA>
.
|
The "Random item" button doesn't act like a regular anchor with an href, and it's a little frustrating to have the current page be forcibly replaced.
You could add to your event listener support for the
ctrlKey
andshiftKey
properties, to open the random item in a new tab, and a new window respectively:discogs-enhancer/js/extension/features/random-item.js
Line 76 in 0c3f918
Still a pleasure to use your extension, thanks for the continued hard work 👍
The text was updated successfully, but these errors were encountered: