フック関数の allUpdateHook を利用することで実現可能です。
https://docs.geniee-search.net/popfind/sitesearch/advanced/#advanced_hook
https://docs.geniee-search.net/popfind/sitesearch/reference/hook/#_8
allUpdateHook のマニュアルは次のURLからご参照いただけます。
https://docs.geniee-search.net/popfind/sitesearch/reference/hook/#allupdatehook
下記関数はサポート範囲外ですのでお問い合わせはご遠慮いただきたく存じますが、
ご参考いただければ幸いです。
allUpdateHook: function() {
// 検索結果内のURLが表示されている要素を取得
var urlElements = document.querySelectorAll('._link a');
urlElements.forEach(function(el) {
// 要素内のテキスト(表示されているURL文字列)を取得
var originalText = el.textContent || el.innerText;
// http/https から始まるURL表記、または % を含む文字列の場合にデコードを試行
if (originalText && (originalText.indexOf('%') !== -1 || originalText.indexOf('http') === 0)) {
try {
var decodedText = decodeURIComponent(originalText);
el.textContent = decodedText;
} catch (e) {
// 不正なエスケープ文字列等で decodeURIComponent が失敗した場合のフォールバック
try {
el.textContent = decodeURI(originalText);
} catch (err) {
// デコード不能な場合は元の表示のまま保持
}
}
}
});
},
この記事は役に立ちましたか?
それは素晴らしい!
フィードバックありがとうございます
お役に立てず申し訳ございません!
フィードバックありがとうございます
フィードバックを送信しました
記事の改善におけるご協力ありがとうございます。