Show Image Popup Library

Библиотека функций PopupImage

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/4524/14909/Show%20Image%20Popup%20Library.js

  1. // ==UserScript==
  2. // @name Show Image Popup Library
  3. // @namespace PSVScripts
  4. // @description Библиотека функций PopupImage
  5. // @version 0.0.0.5
  6. // ==/UserScript==
  7.  
  8. /*
  9. handler = function(SourceObject, CallBack, ImageUrl)
  10. {
  11. ~CallBack(SourceObject, ImageUrl);
  12. if CanHandle
  13. return true;
  14. else
  15. return false
  16. }
  17. */
  18.  
  19. var win = unsafewindow;
  20.  
  21. if (!win.PSVScript_IPHandlers)
  22. win.PSVScript_IPHandlers = new Array();
  23.  
  24. var handlers = win.PSVScript_IPHandlers;
  25.  
  26. if (!win.PSVScript_IPHandler)
  27. win.PSVScript_IPHandler = PSVScript_IPHandler;
  28.  
  29. function PSVScript_IPHandler(SourceObject, CB, ImageUrl)
  30. {
  31. for (var i=0; i< handlers.length; i++)
  32. if (handlers[i](SourceObject, CB, ImageUrl))
  33. break;
  34. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址