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.

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Necesitarás instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Necesitará instalar una extensión como Tampermonkey para instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión como Stylus para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

Necesitará instalar una extensión del gestor de estilos de usuario para instalar este estilo.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

Autor
octopushugger
Instalaciones diarias
0
Instalaciones totales
284
Calificaciones
0 0 0
Versión
0.1.3
Creado
23/02/2022
Actualizado
05/03/2022
Tamaño
39.5 KB
Licencia
WTFPL
Funciona en

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.