congdantoancau

Facebook Relocate Download button

Oct 11th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.96 KB | None | 0 0
  1. <style>
  2. /* Show overlay elements */
  3. .snowliftOverlay {opacity: 1 !important;}
  4. .uiContextualLayerPositioner {opacity: 1 !important;}
  5.  
  6. /* Download button */
  7. ._54nc[data-action-type="download_photo"] {display: flex;}
  8. ._54nc[data-action-type="download_photo"]:hover {
  9.     display: flex;
  10.     background: green;
  11.     color: white;
  12. }
  13.  
  14. .uiButtonText {
  15.     border: 1px solid orange !important;
  16.     padding: 0px 15px !important;
  17. }
  18.  
  19. .uiButtonText:hover {
  20.     background: orange;
  21.     text-decoration: none !important;
  22. }
  23. </style>
  24.  
  25. <script>
  26.  
  27. /* Photo download button */
  28. function clickOptions() {
  29.     $('.fbPhotoSnowliftDropdownButton')[0].click();
  30. }
  31.  
  32. function replaceImgDownload() {
  33.     $('.uiButtonText').css('background', 'red');
  34.     var btnDown = $('._54nc[data-action-type="download_photo"]');
  35.     console.log(btnDown);
  36.     $('._6iiu').append(btnDown);
  37.     btnDown.addClass('_18vi');
  38.     clickOptions();
  39. }
  40.  
  41. setTimeout(clickOptions, 7000);
  42. setTimeout(replaceImgDownload, 7500);
  43.  
  44.  
  45. </script>
Add Comment
Please, Sign In to add comment