davidofwatkins / rescroller

Decorate your scrollbars.
33 stars 3 forks source link

Integration with other chrome extensions #4

Open dellagustin opened 4 years ago

dellagustin commented 4 years ago

Hello, I am the developer of podStation: https://chrome.google.com/webstore/detail/podstation-podcast-player/bpcagekijmfcocgjlnnhpdogbplajjfn

A use has requested the feature of integrating with your extension: https://github.com/podStation/podStation/issues/116

Do you see any way of doing that?

Best regards, Guilherme.

davidofwatkins commented 4 years ago

@dellagustin Hey there, thanks for letting me know! Unfortunately, I don't think Chrome allows extensions to operate on other extension pages (or any chrome:// pages for that matter) 😞

I suppose you could copy some of the functionality of Rescroller into your extension, but that a) seems way out of scope for what your extension does, and b) wouldn't sync up with whatever styling the user has chosen inside Rescroller. Sorry, wish I had a better answer!

dellagustin commented 4 years ago

Hi @davidofwatkins , thanks for your response. I imagined that would be the answer, as I am familiar with the limitations of chrome extensions.

I do have an integration with the extension Screen Shader (https://github.com/MarcGuiselin/screen-shader).

I contacted the author by e-mail and he answered me he had the possibility to integrate and gave me a code snippet: https://github.com/podStation/podStation/blob/66c905836be0ba5874869a63e37af46473b6f22c/extension/ui/ng/podstationApp.js#L56

I imagine a similar approach could be possible for rescroller, if you are interested to implement it.