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.39k stars 454 forks source link

Safari extension? #7

Open rochakagrawal opened 5 years ago

rochakagrawal commented 5 years ago

This is such an amazing extension - please can you build one for safari extension on MacOS?

manojVivek commented 5 years ago

@rochakagrawal I'm so glad that you liked the extension. The extension is now available only for chrome and firefox.

It is not very straightforward to port it to Safari, as it has a whole new extension platform. Sorry for the disappointment.

rochakagrawal commented 5 years ago

Hi Manoj Just to follow up. It seems your great extension to unlock medium articles is no longer working on the latest version of Chrome? The logo comes and it seems its trying to unlock but then the page goes blank

Is there a way to fix this in an update?

Thanks Rochak

On Wed, Feb 20, 2019 at 1:32 AM Manoj Vivek notifications@github.com wrote:

@rochakagrawal https://github.com/rochakagrawal I'm so glad that you liked the extension. The extension is now available only for chrome and firefox.

It is not very straightforward to port it to Safari, as it has a whole new extension platform. Sorry for the disappointment.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/manojVivek/medium-unlimited/issues/7#issuecomment-465231797, or mute the thread https://github.com/notifications/unsubscribe-auth/ADf4wJ9Wn5srRaUMwaGde54xNSXUlbxEks5vPDUZgaJpZM4agGZj .

rochakagrawal commented 5 years ago

Sorry please ignore Manoj - I tried reinstalling from your website and it seems to work again

Fingers crossed !

thanks

On Sat, Jul 6, 2019 at 11:53 AM Rochak Agrawal rochak10@gmail.com wrote:

Hi Manoj Just to follow up. It seems your great extension to unlock medium articles is no longer working on the latest version of Chrome? The logo comes and it seems its trying to unlock but then the page goes blank

Is there a way to fix this in an update?

Thanks Rochak

On Wed, Feb 20, 2019 at 1:32 AM Manoj Vivek notifications@github.com wrote:

@rochakagrawal https://github.com/rochakagrawal I'm so glad that you liked the extension. The extension is now available only for chrome and firefox.

It is not very straightforward to port it to Safari, as it has a whole new extension platform. Sorry for the disappointment.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/manojVivek/medium-unlimited/issues/7#issuecomment-465231797, or mute the thread https://github.com/notifications/unsubscribe-auth/ADf4wJ9Wn5srRaUMwaGde54xNSXUlbxEks5vPDUZgaJpZM4agGZj .

rochakagrawal commented 4 years ago

Hi Manoj

It seems on the latest version of Chrome - they are disabling your extension. Please see error message below

Any advise on how to reenable it?

Thanks

On 6 Jul 2019, at 11:53 AM, Rochak Agrawal rochak10@gmail.com wrote:

Hi Manoj Just to follow up. It seems your great extension to unlock medium articles is no longer working on the latest version of Chrome? The logo comes and it seems its trying to unlock but then the page goes blank

Is there a way to fix this in an update?

Thanks Rochak

On Wed, Feb 20, 2019 at 1:32 AM Manoj Vivek <notifications@github.com mailto:notifications@github.com> wrote: @rochakagrawal https://github.com/rochakagrawal I'm so glad that you liked the extension. The extension is now available only for chrome and firefox.

It is not very straightforward to port it to Safari, as it has a whole new extension platform. Sorry for the disappointment.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/manojVivek/medium-unlimited/issues/7#issuecomment-465231797, or mute the thread https://github.com/notifications/unsubscribe-auth/ADf4wJ9Wn5srRaUMwaGde54xNSXUlbxEks5vPDUZgaJpZM4agGZj.

rochakagrawal commented 4 years ago

Hi Manoj

It seems Safari is now using the web methods api. Similar to Firefox

https://hacks.mozilla.org/2020/06/welcoming-safari-to-the-webextensions-community/

Is it now possible for you to port your extension to safari 14 pls ?

Thanks

Sent from my  iphone

On 9 Feb 2020, at 5:37 PM, Rochak Agrawal rochak10@gmail.com wrote:

Hi Manoj

It seems on the latest version of Chrome - they are disabling your extension. Please see error message below

Any advise on how to reenable it?

Thanks

<Screenshot of Google Chrome (9-2-2020, 5-36-52 PM).png>

On 6 Jul 2019, at 11:53 AM, Rochak Agrawal rochak10@gmail.com wrote:

Hi Manoj Just to follow up. It seems your great extension to unlock medium articles is no longer working on the latest version of Chrome? The logo comes and it seems its trying to unlock but then the page goes blank

Is there a way to fix this in an update?

Thanks Rochak

On Wed, Feb 20, 2019 at 1:32 AM Manoj Vivek notifications@github.com wrote: @rochakagrawal I'm so glad that you liked the extension. The extension is now available only for chrome and firefox.

It is not very straightforward to port it to Safari, as it has a whole new extension platform. Sorry for the disappointment.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

manojVivek commented 4 years ago

That is good news, will look into it.

rochakagrawal commented 4 years ago

Thanks !

Sent from my  iphone

On 24 Jun 2020, at 10:41 AM, Manoj Vivek notifications@github.com wrote:

 That is good news, will look into it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

fontvu commented 4 years ago

Thanks @manojVivek , your extension is the gatekeeper of my movement out of Chromium and Firefox to Safari

chrishrtmn commented 3 years ago

Any updates on this?

hungnguyen81hub commented 3 years ago

I'm second to this

bhavul commented 3 years ago

Hello,

I recently upgraded to MacOS Big Sur and hence new Safari 14 as well which supports web extensions API. I then followed Apple's tutorial to try to convert this chrome extension to Safari extension using XCode using these two links :

  1. https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
  2. https://developer.apple.com/documentation/safariservices/safari_app_extensions/building_a_safari_app_extension#2957926
Screenshot 2020-11-23 at 2 33 52 AM

The build actually succeeded without errors but with a simple warning about manifest.json as shown above.

I was able to install the extension to Safari and enable it HOWEVER it did not unblock any pages on medium. I checked this by trying out some featured articles from towardsdatascience on medium.

Screenshot 2020-11-23 at 2 30 49 AM

I'm not at all a javascript developer as such, neither have worked with browser extensions before. However, hoping to try out if any of you suggests any possible fixes. Otherwise also posted this here so someone else may get inspired and fix the extension for Safari, perhaps. :)

rochakagrawal commented 3 years ago

Hello,

I recently upgraded to MacOS Big Sur and hence new Safari 14 as well which supports web extensions API. I then followed Apple's tutorial to try to convert this chrome extension to Safari extension using XCode using these two links :

  1. https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari
  2. https://developer.apple.com/documentation/safariservices/safari_app_extensions/building_a_safari_app_extension#2957926
Screenshot 2020-11-23 at 2 33 52 AM

The build actually succeeded without errors but with a simple warning about manifest.json as shown above.

I was able to install the extension to Safari and enable it HOWEVER it did not unblock any pages on medium. I checked this by trying out some featured articles from towardsdatascience on medium.

Screenshot 2020-11-23 at 2 30 49 AM

I'm not at all a javascript developer as such, neither have worked with browser extensions before. However, hoping to try out if any of you suggests any possible fixes. Otherwise also posted this here so someone else may get inspired and fix the extension for Safari, perhaps. :)

Hopefully you fix it. Thanks for trying

How do I down load your safari work?

manojVivek commented 3 years ago

I recently upgraded to MacOS Big Sur and hence new Safari 14 as well which supports web extensions API. I then followed Apple's tutorial to try to convert this chrome extension to Safari extension using XCode

@bhavul Thank you so much for giving it a try!

The build actually succeeded without errors but with a simple warning about manifest.json as shown above.

Looks like webRequestBlocking is not supported by Safari as per their documentation here: https://developer.apple.com/documentation/safariservices/safari_web_extensions/assessing_your_safari_web_extension_s_browser_compatibility

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then? 🤔

bhavul commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that.

This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue.

Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking).


@rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari)

However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

mctosima commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that.

This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue.

Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking).

@rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari)

However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

Anyway, I try this instruction and stuck on step 5 (Could not launch).

Screen Shot 2021-05-10 at 15 09 01

Any suggestions ?

mm-webx commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that. This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue. Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking). @rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari) However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

Anyway, I try this instruction and stuck on step 5 (Could not launch).

Screen Shot 2021-05-10 at 15 09 01

Any suggestions ?

Hey, just change to Legacy Build System:

In Xcode: File > Project Settings and change it:

mctosima commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that. This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue. Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking). @rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari) However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

Anyway, I try this instruction and stuck on step 5 (Could not launch).

Screen Shot 2021-05-10 at 15 09 01

Any suggestions ?

Hey, just change to Legacy Build System:

In Xcode: File > Project Settings and change it:

Thanks dude. It might works. I'll try it now

rochakagrawal commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that. This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue. Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking). @rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari) However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

Anyway, I try this instruction and stuck on step 5 (Could not launch).

Screen Shot 2021-05-10 at 15 09 01

Any suggestions ?

Hey, just change to Legacy Build System:

In Xcode: File > Project Settings and change it:

hi - are you saying the extension works in safari above using legacy build?

mctosima commented 3 years ago

But that is needed for the extension to add the referer URL to the article requests. We will have to wait till that is supported then?

@manojVivek Yeah I was going through your code and other such extensions' code later on and realised every such paywall-blocking extension required webRequestBlocking. Unfortunately, I don't think Safari's gonna add support for that. This is the reason uBlock ad-blocker has never reached Safari. If you google that up, lots of threads may come up. This is a long standing issue. Is there any other way to add referrer URL? I found this tool called xhook which works on Safari as well. Do you think this could be used to accomplish what your extension does? (without needing webRequestBlocking). @rochakagrawal there's no way for me to share the version I built. Only way of distribution is via App Store and for that I would have to become an Apple Developer which requires me to pay upfront fee of 99 USD a year. So, a no go. Your safari would not allow any extension built on any other system unless its signed via Apple developer keys. But, you can build the same on your own and try running the same. Detailing steps here :

  1. Clone this github repo to your mac
  2. Run the following command from terminal : xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  3. Say yes to everything
  4. It would open the extension in XCode
  5. Go to Menu Bar -> Product -> Run.
  6. Open Safari -> Menu Bar -> Develop -> "Allow Unsigned Extensions"
  7. Open Safari -> Preferences -> Extensions -> Enable Medium Unlimited extension.

(Steps from https://developer.apple.com/documentation/safariservices/safari_web_extensions/converting_a_web_extension_for_safari) However it would just not work as webRequestBlocking is not supported by Safari and critical to working for extension. :(

Anyway, I try this instruction and stuck on step 5 (Could not launch).

Screen Shot 2021-05-10 at 15 09 01

Any suggestions ?

Hey, just change to Legacy Build System: In Xcode: File > Project Settings and change it:

hi - are you saying the extension works in safari above using legacy build?

Just edited by comment. Sorry for this chaos. I'll just want to try it. I've uninstalled the xcode then currently I start to download it again

rochakagrawal commented 3 years ago

So I was able to follow the instructions above

  1. cloned the repo
  2. installed Xcode
  3. ran the command above xcrun safari-web-extension-converter /path/to/where/you/cloned/above/repo
  4. Changed project settings to legacy build in Xcode
  5. Clicked on run in Xcode -> build succeeded
  6. I was able to enable the extension in safari successfully
  7. See screenshots below
  8. BUT - it doesn't seem to be unlocking anything. I signed out of medium, and after 3 free articles the paid article is not getting unlocked.. please help
Medium – Where good ideas find you  2021-05-21 00-49-41 Medium Unlimited: Read paid content for free! 2021-05-21 00-51-11 Follow Elon Musk’s Advice and Skip the MBA  Read These 10 Books Instead | by Jessica Stillman | Medium 2021-05-21 00-54-11
rochakagrawal commented 3 years ago

Hi. Do we know if the upgrades web extensions support would also this to be ported to iOS 15 or safari now in Monterey. Is this support possible now ?

davidavsoares commented 2 years ago

Anyone managed to solve this problem?

I am having the same issue

image
rochakagrawal commented 2 years ago

Anyone managed to solve this problem?

I am having the same issue

image

the extension has stopped working in Chrome as well. So chances of working in Safari are now nil sadly