您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Library for creating custom image elements on Furaffinity
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/492931/1362749/Furaffinity-Submission-Image-Viewer.js
Library for creating image elements on Furaffinity. Also see this Script on Github as Furaffinity-Submission-Image-Viewer
@require
this script
const baseElem = document.createElement("div");
const faImageViewer = new CustomImageViewer(imgSrc, prevSrc);
faImageViewer.load(baseElem);
faImageViewer.onImageLoad(() => doSomthing()); // occurs if the image is fully loaded
faImageViewer.onImageLoadStart(() => doSomthing()); // occurs if the image started loading
faImageViewer.onPreviewImageLoad(() => doSomthing()); // occurs if the preview image fully loaded
The CustomImageViewer class contains following Properties:
imageUrl
- the image urlpreviewUrl
- the preview image urlparentContainer
- the parent container on which the image will be createdfaImage
- the image elementfaImagePreview
- the preview image elementonImageLoad
- the callback for when the image is fully loadedonImageLoadStart
- the callback for when the image starts loadingonPreviewImageLoad
- the callback for when the preview image is fully loadedhasReset
- if the image has been resetFunctions:
load()
- starts loading the imagereset()
- resets the imageQingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址