From 6b5c014e756743d1e8bd18f00e5ce1d1fbd3f265 Mon Sep 17 00:00:00 2001 From: gnosygnu Date: Fri, 1 Feb 2019 22:14:36 -0500 Subject: [PATCH] Xtn.Popups: Do not show category pages from popup [#339] --- res/bin/any/xowa/html/res/src/xowa/popups/xo.popup.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/res/bin/any/xowa/html/res/src/xowa/popups/xo.popup.js b/res/bin/any/xowa/html/res/src/xowa/popups/xo.popup.js index f656ef68a..7a4531128 100644 --- a/res/bin/any/xowa/html/res/src/xowa/popups/xo.popup.js +++ b/res/bin/any/xowa/html/res/src/xowa/popups/xo.popup.js @@ -80,9 +80,10 @@ var XoPopupMgr = (function(){ elems.focus(function(ev) {XoPopupMgr.prototype.ShowFocus($(this), ev);}); elems.blur (function(ev) {XoPopupMgr.prototype.Hide($(this), ev);}); } - } + } + // NOTE: ".*/wiki/File:" is for HTTP: ("/en.wikipedia.org/wiki/File:...") and SWT ("/wiki/File:...") - XoPopupMgr.ProtocolPattern = /^(((http|https|ftp):\/\/)|(javascript:|xowa-cmd:|.*\/wiki\/File:|.*\/wiki\/Image:)|#cite_)/; + XoPopupMgr.ProtocolPattern = /^(((http|https|ftp|mailto):)|(javascript:|xowa-cmd:|.*\/wiki\/(File|Image|Category|Talk|User|Special):)|#cite_|\/fsys)/; XoPopupMgr.prototype.BindHoverToFilter = function(elems) { var array = []; var len = elems.length;