sooxt98 / spotify-crack-chrome-app

World smallest spotify crack app ever~
234 stars 28 forks source link

Problem with different languages #6

Closed pms967 closed 3 years ago

pms967 commented 3 years ago

Upgrade button suppression does not work in (some?) other language. E.g., for Italian language this patch needs to be applied:

--- style.css~ 2020-09-05 11:06:56.000000000 +0200 +++ style.css 2021-01-26 15:12:45.527342813 +0100 @@ -1,3 +1,3 @@ -button[title="Upgrade to Premium"], div[data-testid="test-ref-div"] { +button[title="Effettua l'upgrade a Premium"], div[data-testid="test-ref-div"] { display:none !important; }

I wonder if it could be possible to use a different (and language-invariant) way to identify that element...

sooxt98 commented 3 years ago

https://github.com/sooxt98/spotify-crack-chrome-app/commit/92f44ba15422a5b04ea5cc441da2d3b0f9d0589a