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.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램을 설치해야 합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

작성자
octopushugger
일일 설치 수
0
총 설치 수
284
평점
0 0 0
버전
0.1.3
생성일
2022-02-23
갱신일
2022-03-05
크기
39.5KB
라이선스
WTFPL
적용 사이트

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.