Sleazy Fork is available in English.

Scale Sankaku Beta

Resizes pics on Sankaku beta to full window size when you touch the left side of the window with your cursor. Uses the Magic Kernel Sharp algorithm for scaling.

Autor
octopushugger
Dnevne instalacije
0
Ukupnih instalacija
253
Ocjene
0 0 0
Verzija
0.1.3
Stvoreno
23.02.2022.
Ažurirano
05.03.2022.
Licenza
WTFPL
Primjenjuje se

Resizes pics to full window size when you touch the left side of the window with your cursor. Uses the Magic Kernel Sharp algorithm for scaling (you need to allow cross origin resource access for this, it will ask you for it).

If you choose to deny cross origin resource access it should still work just without high quality scaling.

Screenshot

This script is designed to work with the browser extension Imagus but it’s not needed.
https://www.google.com/search?q=Imagus
( If you use Imagus: Set popup location to center in Imagus options to make it look less jank, also sadly for contentious content Imagus will only load thumbnails. If you want to enable the script for Imagus on all sites change the line // @match *://beta.sankakucomplex.com/* to // @match *://*/* )

Hotkeys:

  • 0 to load Original
  • N to enable/disable Sankaku popup without moving mouse
  • M to show/hide currently scaled image
  • F11 for fullscreen obviously

Large credit to the creators of pica of which this script makes heavy use of: https://github.com/nodeca/pica

Things to note:

  • If you don’t have premium and your arrow keys suddenly stop working it’s probably because the ad popup has popped up under the image.
  • There is a bug in Firefox where if any window resizing is done the popup will not stay up when you press the arrow keys. Press back and then forward to fix it.
  • If you press 0 too fast before the sidebar is fully loaded you’ll have to press it again.
  • There may be more bugs in Chrome since most of my testing was done in Firefox.
  • Videos are not currently supported.
  • I don't know why but this script breaks drop downs on some sites. Probably not an issue if you only use it on Sankaku.
  • Very high resolution images may cause performance issues.
  • This script may break at any time when Beta gets updated.
  • Don’t look too closely at the code, I just started learning JavaScript.