Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding support for grabbing content from HTTPS sites. #4

Merged
merged 1 commit into from
Sep 25, 2016

Conversation

victorvogelpoel
Copy link
Contributor

IMPORTANT: your Asaph site needs to be provisioned for both HTTP and HTTPS. HTTP source sites use your HTTP Asaph site, HTTPS source sites automatically use your HTTPS Asaph site.

The bookmarklet will call your Asaph site in the SAME protocol that the source site uses. The Asaph script injects code into the source page using the appropriate protocol.
For example, 500px.com always uses HTTPS and the Asaph bookmarklet will call your Asaph site using HTTPS. Site tumblr.com is using HTTP and the Asaph bookmarklet will call your Asaph using HTTP.

IMPORTANT: your Asaph site needs to be provisioned for both HTTP and HTTPS. HTTP source sites use your HTTP Asaph site, HTTPS source sites automatically use your HTTPS Asaph site.
The bookmarklet will call your Asaph site in the same protocol that the source site uses.
The Asaph script injects code into the source page using the appropriate protocol.
For example, 500px.com always uses HTTPS and the Asaph bookmarklet will call your Asaph site using HTTPS. Site tumblr.com is using HTTP and the Asaph bookmarklet will call your Asaph using HTTP.
@phoboslab
Copy link
Owner

Awesome, thank you!

@phoboslab phoboslab merged commit 9dcf1db into phoboslab:master Sep 25, 2016
@callblueday
Copy link

callblueday commented Oct 13, 2016

I have got an error in the console when i click the bookmarklet.

https://www.tumblr.com/explore/window.location.protocol+//www.mysite.com/fave/admin/post.js.php 

and my bookmarklet's link is

javascript:void((function()%7Bvar e%3Ddocument.createElement(%27script%27)%3Be.type%3D%27text/javascript%27%3Be.src%3D%27window.location.protocol%2B//www.mysite.com/fave/admin/post.js.php%27%3Bdocument.body.appendChild(e)%7D)())%3B

@victorvogelpoel
Copy link
Contributor Author

It seems a wrongly placed single quote is to blame.
I submitted a pull request with the fix....

By the way: Asaph won't work with tumblr.com/explore (the Asaph window won't show)
Please note that your asaph site needs to be configured for HTTPS as well when you try to grab content from a source HTTPS site...
The individual tumblr.com boards can be accessed with HTTP as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants