Skip to content

Instantly share code, notes, and snippets.

@kzar
Created May 8, 2012 09:56
Show Gist options
  • Select an option

  • Save kzar/2633947 to your computer and use it in GitHub Desktop.

Select an option

Save kzar/2633947 to your computer and use it in GitHub Desktop.
afterdark.co - Facebook login for gallery workaround - (paste in browser URL)
javascript:$(".galleryThumbnail").each(function(a){var b=$(this).attr("src").replace("thumbnails","full");$(this).parent().click(function(a){imageswap(b);return false})})
@kzar

kzar commented May 8, 2012

Copy link
Copy Markdown
Author

Copy the code and paste into URL bar, make sure you copy the whole line and that the "javascript:" prefix isn't removed (Chrome seems to strip it sometimes.)

@kzar

kzar commented May 8, 2012

Copy link
Copy Markdown
Author

(Should be pasted in when you're viewing a gallery page, clicking the thumbnails will then display the full picture instead of asking you to sign into Facebook.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment