Greasy Fork

Full image from screenshoters

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

目前为 2021-12-16 提交的版本。查看 最新版本

// ==UserScript==
// @name        Full image from screenshoters
// @namespace   Neur0toxine
// @license     MIT
// @include     /^https?:\/\/prnt\.sc\/[\w\d]+$/
// @include     /^https?:\/\/skr\.sh\/[\w\d]+$/
// @include     /^https?:\/\/ibb\.co\/[\w\d]+$/
// @include     /^https?:\/\/monosnap\.com\/file\/[\w\d]+$/
// @include     /^https?:\/\/nimbusweb\.me\/nimbus\-screenshots\/[\w\d]+$/
// @include     /^https?:\/\/joxi\.ru\/[\w\d]+$/
// @exclude     /^https?:\/\/joxi\.ru\/[\w\d]+\.jpg$/
// @grant       none
// @version     0.2
// @author      Neur0toxine
// @description Opens the image itself while opening different screenshot services (you won't see their bloated webpages).
// ==/UserScript==
switch (location.host) {
  case 'prnt.sc':
    location.assign(document.querySelector('.no-click.screenshot-image').src);
    break;
  case 'skr.sh':
    location.assign(document.getElementById('screenshot-image').src);
    break;
  case 'joxi.ru':
    location.assign(location.href + '.jpg');
    break;
  case 'ibb.co':
    location.assign(document.querySelector('#image-viewer-container > img').src);
    break;
  case 'monosnap.com':
    location.assign(`https://api.monosnap.com/file/download?id=${location.pathname.replace('/file/', '')}`);
    break;
  case 'nimbusweb.me':
    location.assign(document.querySelector('nns-note > .nns-adds-wrapper > .wrapper > .note-content > nns-note-text img').src);
    break;
}