minj / foxtrick

FoxTrick is a browser extension for the Hattrick online football manager game, currently available for Firefox, Google Chrome, as well as for Opera.
https://www.foxtrick.org
GNU General Public License v3.0
69 stars 49 forks source link

!Feature Request - Copy (event code) to clipboard #1664

Open murko69 opened 4 years ago

murko69 commented 4 years ago

Copied from my forum post :)

Would it be possible to add a 'copy to clipboard' -feature on Live & post match pages for the events/icons in the timeline (much like the friendly match icon in match lists)? It's the title-info I would like copied (in plain text) for easy access.

In the image example "Kraftfull normal forward skapar extra chans och gör mål (190)" would be copied by clicking the marked div. See image: events

I'm guessing this would work on both old live (+classic view) and new pages? Only difference I guess is that classic live+match pages uses Foxtrick added event codes and new pages uses a HT-feature or am I offside here?

Edit: Just checked out classic view and it wouldn't actually work the same way since classic look have the text in the image alt-tag and the new pages look like above, but still I guess/think it's doable even if it requires two different solutions?