Houzz.com downloader

Allow to download images from houzz.com

当前为 2017-11-24 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Houzz.com downloader
  3. // @description Allow to download images from houzz.com
  4. // @author Basil Poupline
  5. // @include https://*houzz.com/*
  6. // @require https://code.jquery.com/jquery-2.2.4.min.js
  7. // @version 0.0.1.20171124121006
  8. // @namespace https://greasyfork.org/users/160637
  9. // ==/UserScript==
  10.  
  11. $(document).ready(function()
  12. {
  13. // remove class hide-context from main image
  14. //$("div, img").removeClass("hide-context");
  15. $("div, img").removeAttr("onmousedown");
  16. $("div, img").removeAttr("ondragstart");
  17. $("div, img").removeAttr("onselectstart");
  18. $("div, img").removeAttr("oncontextmenu");
  19. //replace fg transparent image to actual product image, used as a background
  20. var bg_url = $(".lbImageView").css('background-image');
  21. $(".lbImageView").attr('src', bg_url);
  22. });