OdyseeTeam / odysee-frontend

The code that runs odysee.com
https://odysee.com
MIT License
209 stars 65 forks source link

Adblockers may block Share button on content pages #156

Open tzarebczan opened 2 years ago

tzarebczan commented 2 years ago

Not sure what's triggering it, but these are the logs. If there's nothing we can do on our end, we can try reaching out to adblock/the lists.


[Adblock Plus 2.0]
! Checksum: UWDRVPHQw3Kktx4ES/2bfw
! Version: 202110281100
! Title: Fanboy's Annoyance List
! Last modified: 2021-10-28 11:00 UTC
! Expires: 9 days (update frequency)
! Homepage: https://easylist.to/
! License: http://creativecommons.org/licenses/by/3.0/
!
! Please report any unblocked content or problems by email or in our forums
! Email: easylist@protonmail.com
! Forums: https://forums.lanik.us/
!
[Adblock Plus 2.0]
! Version: 202110281102
! Title: Fanboy's Social Blocking List
! Last modified: 28 Oct 2021 11:02 UTC
! Expires: 4 days (update frequency)
! License: http://creativecommons.org/licenses/by/3.0/
! Please report any unblocked content or problems by email or in our forums
! Email: easylist@protonmail.com
! Homepage: https://easylist.to/
! Forums: https://forums.lanik.us/
! 
! --------------------------General blocking rules-----------------------------!
! *** easylist:fanboy-addon/fanboy_social_general_block.txt ***```
GlobalGamer2015 commented 2 years ago

If you go to "\ui\component\fileActions\view.jsx"

Find this code: <Button className="button--file-action" icon={ICONS.SHARE} label={isMobile ? undefined : __('Share')} title={__('Share')} onClick={() => openModal(MODALS.SOCIAL_SHARE, { uri, webShareable, collectionId })} />

Then comment out title={__('Share')} and the button appears with Ad Blocker enabled on Google Chrome.

image

image

This would most likely have to be applied to all of the share references I assume.