Created
September 25, 2013 08:48
-
-
Save homleen/6696850 to your computer and use it in GitHub Desktop.
Show 500px photo url.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @match http://500px.com/photo/* | |
// ==/Userscript== | |
'use strict'; | |
(function(){ | |
var imgPlaceHolder = document.querySelector('.nude_placeholder'); | |
var imgUrl = imgPlaceHolder.nextSibling.src; | |
var descArea = document.querySelector('.description_text_wrap'); | |
var link = document.createElement('a'); | |
link.href = imgUrl; | |
link.textContent = imgUrl; | |
var style = link.style; | |
style.display = 'block'; | |
style.fontSize = '16px'; | |
style.margin = '20px 0px'; | |
style.color = 'red'; | |
descArea.appendChild(link); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment