evazion / translate-pixiv-tags

MIT License
35 stars 6 forks source link

Hello, is it possible to make this work within tweetdeck.twitter.com? #29

Closed UmbraVivens closed 5 years ago

UmbraVivens commented 5 years ago

i find myself using tweetdeck more often than twitter itself and i LOVE this script, but it would be amazing if it worked in tweetdeck.

7nik commented 5 years ago

I added it in the master branch, could you check it out?

UmbraVivens commented 5 years ago

wOOOOOOOOOOOOOW yes it is working! thank you very much. And just in case, could there be a part of documentation explaining how we can add compatibility for more websites (under the end user's responsibility of course)? Really thank you

7nik commented 5 years ago

I'll discuss it. If in short, you need to add in the header @match with your site, add function initializeYourSiteName, and call it in the function initialize. The initializeYourSiteName may call GM_addStyle to add CSS and findAndTranslate to specify where and how translate tags. You can look at other initialing functions and realization of the findAndTranslate for more details.

7nik commented 5 years ago

@UmbraVivens, I added to the wiki an article about it.