Full image from screenshoters

Opens the image itself while opening different screenshot services (you won't see their bloated webpages).

  1. // ==UserScript==
  2. // @name Full image from screenshoters
  3. // @namespace Neur0toxine
  4. // @license MIT
  5. // @include /^https?:\/\/prnt\.sc\/[\w\-]+$/
  6. // @include /^https?:\/\/skr\.sh\/\w+$/
  7. // @include /^https?:\/\/ibb\.co\/\w+$/
  8. // @include /^https?:\/\/monosnap\.com\/file\/\w+$/
  9. // @include /^https?:\/\/nimbusweb\.me\/nimbus\-screenshots\/\w+$/
  10. // @include /^https?:\/\/joxi\.ru\/\w+$/
  11. // @exclude /^https?:\/\/joxi\.ru\/\w+\.jpg$/
  12. // @grant none
  13. // @version 0.4
  14. // @author Neur0toxine
  15. // @description Opens the image itself while opening different screenshot services (you won't see their bloated webpages).
  16. // ==/UserScript==
  17. switch (location.host) {
  18. case 'prnt.sc':
  19. location.assign(document.querySelector('.no-click.screenshot-image').src);
  20. break;
  21. case 'skr.sh':
  22. location.assign(document.getElementById('screenshot-image').src);
  23. break;
  24. case 'joxi.ru':
  25. location.assign(location.href + '.' + document.querySelector('.tile-preview > img').src.split('.').pop());
  26. break;
  27. case 'ibb.co':
  28. location.assign(document.querySelector('#image-viewer-container > img').src);
  29. break;
  30. case 'monosnap.com':
  31. location.assign(`https://api.monosnap.com/file/download?id=${location.pathname.replace('/file/', '')}`);
  32. break;
  33. case 'nimbusweb.me':
  34. location.assign(document.querySelector('nns-note > .nns-adds-wrapper > .wrapper > .note-content > nns-note-text img').src);
  35. break;
  36. }