If you place this under Edit Menus -> Link and try scrolling at the bottom you will see that it won't colorize correct.
Open in browser:/url -w $$1
Copy link:/clipboard $$1
-
$iif($regex($1,$img_pattern) || *imgur.com* iswm $1 || *ibb.co* iswm $1 || *pixxxels.cc* iswm $1 || *pasteall.org* iswm $1 || *postimg.cc* iswm $1,Show Inline Image): {
var %line_last = $fline($active,* $+ $1 $+ *,0)
var %line = $fline($active,* $+ $1 $+ *,%line_last)
if ($right($1,5) == .jpeg) || ($right($1,5) == .tiff) || ($right($1,4) == .png) || ($right($1,4) == .jpg) || ($right($1,4) == .ico) || ($right($1,4) == .gif) { inlineimage -ai $+ $calc(%line +1) $1 | return }
if (*imgur.com* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
if (*ibb.co* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
if (*pixxxels.cc* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
if (*pasteall.org* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
if (*postimg.cc* iswm $1) { get_img $calc(%line +1) $chan $1 | return }
}
$iif($regex($1,$img_pattern),Hide Inline Image): { inlineimage -ra $1 }
-
$iif($regex($1,$img_pattern),Open Inline Image): {
var %n = $md5($1-,0)
if ($readini($adiircini,n,InlineImages,InlineImagesUseTempFolder) == True) { var %f = $envvar(temp) $+ \AdiIRC\ $+ %n }
else { var %f = $adiircdircache\preview\ $+ %n }
if ($file(%f)) { pic $qt(%f) }
else { noop $input(That image does NOT exist on the cache! $crlf $crlf $+ $+ $qt(%f),houd,Error) }
}
$iif($regex($1,$img_pattern),Open Inline Image in Windows): {
var %n = $md5($1-,0)
if ($readini($adiircini,n,InlineImages,InlineImagesUseTempFolder) == True) { var %f = $envvar(temp) $+ \AdiIRC\ $+ %n }
else { var %f = $adiircdircache\preview\ $+ %n }
if ($file(%f)) { run $qt(%f) }
else { noop $input(That image does NOT exist on the cache! $crlf $crlf $+ $+ $qt(%f),houd,Error) }
}
-