Skip to content

Instantly share code, notes, and snippets.

@oldcai
Last active April 18, 2020 20:59
Show Gist options
  • Save oldcai/0c07bc289db48418ecf3f51b0e899581 to your computer and use it in GitHub Desktop.
Save oldcai/0c07bc289db48418ecf3f51b0e899581 to your computer and use it in GitHub Desktop.
Enable copy 500px images and image links by right click at the image
// ==UserScript==
// @name copy 500px images
// @namespace http://www.oldcai.com/
// @version 0.1
// @description copy 500px images
// @author You
// @match https://500px.com/photo/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
$('body').on('DOMNodeInserted', '#photo_copyright_tooltip', function(e) {
$('.photo').css('z-index', 99999);
$('.photo-focus__photo').css('z-index', 99999);
console.log('put photo to front');
return true;
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment