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

photobucket: show full (original) res image #203

Closed
wants to merge 1 commit into from

Conversation

ftc2
Copy link

@ftc2 ftc2 commented Sep 3, 2015

i updated the script to show the full res version of the image instead of a small size.

i tried doing it the 'right' way by:
-- injecting js to use their function Pb.Data.Shared.get(Pb.Data.Shared.MEDIA).originalUrl to access the full size image url
-- creating a <meta> tag with the url to recover it in the userscript through the DOM
but i ran into some kind of a problem. you can check out my (probably very close to working) attempt here:

https://gist.github.com/ftc2/f82c242c9ee0337e01f1

however, i realized that the full size image url is actually the small size image url with ~original appended, so i just did that instead.

@Owyn
Copy link
Owner

Owyn commented Sep 3, 2015

I believe you don't need any injections to get js variables from inside userscripts.

Here, I fixed photobucket: 3e3ce7e

@Owyn Owyn closed this Sep 3, 2015
@ftc2
Copy link
Author

ftc2 commented Sep 3, 2015

nice, thanks!

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.

2 participants