manojVivek / medium-unlimited

A browser extension to read medium.com articles for free without membership.
https://manojvivek.github.io/medium-unlimited/
GNU General Public License v3.0
5.41k stars 454 forks source link

fix: Unblocking third party embeds #149

Closed imshubhamsingh closed 3 years ago

imshubhamsingh commented 3 years ago

Hey @manojVivek, I use your extension a lot. and thanks for creating it!! Recently I've been facing the issue where in third party embeds are not shown in certain cases. More details about this issue is described here.

While tinkering with medium platform, I noticed, it uses persistent storage on client to decide when to load these embeds. For now I have found a way to circumvent this logic.

manojVivek commented 3 years ago

For now I have found a way to circumvent this logic.

@imshubhamsingh So the third-party embeds are depending on the post count localStorage value?

imshubhamsingh commented 3 years ago

@manojVivek At the moment, I only looked into redux state and localStorage state, and both seems to have this post count value in it. On setting this value to less than 2 ( i.e. the amount of free view one can get from the platform on paid article), the embeds are shown. There might be more checks. Setting this values less than 2 seems to work for the time being. ( tested on my machine with sample article provided in description )

manojVivek commented 3 years ago

@imshubhamsingh I just tested it and it didn't work. Can you share a video of this fix working for you? Just to make sure, I'm doing the same thing as you are

Sometimes, it would work if you have already unlocked this article with your 3 free article quota, Please test with a fresh article. Thanks!

imshubhamsingh commented 3 years ago

@manojVivek can you share the medium article link on which you tested. or is it same from linked issue?

manojVivek commented 3 years ago

@imshubhamsingh Try these

https://towardsdatascience.com/30-helpful-python-snippets-that-you-can-learn-in-30-seconds-or-less-69bb49204172 https://betterprogramming.pub/20-python-snippets-you-should-learn-today-8328e26ff124 https://betterprogramming.pub/127-helpful-javascript-snippets-you-can-learn-in-30-seconds-or-less-part-1-of-6-bc2bc890dfe5 https://levelup.gitconnected.com/22-python-code-snippets-for-everyday-problems-4c6a216c33ae

imshubhamsingh commented 3 years ago

@manojVivek I'm closing this. I also think this logic doesn't works all the time. I will re-open it if I get time to look into this more throughly.