Skip to content

Instantly share code, notes, and snippets.

@gozen-bro3
Last active August 29, 2015 13:56
Show Gist options
  • Save gozen-bro3/8968330 to your computer and use it in GitHub Desktop.
Save gozen-bro3/8968330 to your computer and use it in GitHub Desktop.
ブラウザ三国志 ページリンク修正 (カード枚数増加によるラベル表示の修正。自ページ合わせて7ページ分のみページラベル表示)
// ==UserScript==
// @name bro3_pager_helper
// @namespace https://github.com/5zen/
// @version 2014.02.14
// @description ブラウザ三国志 ページリンク修正
// @match http://*.3gokushi.jp/card/*
// @match http://*.3gokushi.jp/union/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// @copyright gozensan
// @grant GM_addStyle
// ==/UserScript==
// 2012.11.30 リリース
// 2012.12.01 合成・トレード時の表示を変更
// 修行・LVUP・削除・ラベル選択・表示カードの種類 の 処理を追加
// 2012.12.03 生贄選択のページ部分の作成
// デュエルのカード選択処理部分を追加
// 2012.12.05 デュエルのカード選択部分を修正
// 2013.05.24 ラベル仕様の変更に対応
// 15ページ分のページジャンプの数字を表示するように変更
// スキルレベルアップ合成時の生贄選択画面を修正
// 2014.02.14 カード枚数増加によるラベル表示の修正。自ページ合わせて7ページ分のみページラベル表示
jQuery.noConflict();
j$ = jQuery;
HOST = location.hostname;
if ( (location.pathname == "/card/deck.php") || (location.pathname == "/card/duel_set.php") || (location.pathname == "/card/labeling.php") ) {
// 初期値
maxPage = 33;
// 通常のページャーを非表示
var rank = xpath('//ul[@class="pager"]', document);
for (var i=0; i < rank.snapshotLength; i++) {
rank.snapshotItem(i).style.display = "none";
}
// 現在の表示ページの取得
var getNowPage = xpath('//ul[@class="pager"]//b', document);
if (getNowPage.snapshotLength) {
nowPage = parseInt(getNowPage.snapshotItem(0).innerHTML);
}
// 最終ページの取得
maxPage = nowPage;
var lastPage = xpath('//a[@title="last page"]', document);
if (lastPage.snapshotLength) {
lastPage.snapshotItem(0).href.match(/p=(\d+)/);
maxPage = parseInt(RegExp.$1);
} else {
var lastPage = xpath('//ul[@class="pager"]/li/a', document);
lastPage.snapshotItem(lastPage.snapshotLength-1).href.match(/p=(\d+)/);
if (nowPage < parseInt(RegExp.$1)) {
maxPage = parseInt(RegExp.$1);
} else {
maxPage = nowPage;
}
}
// maxPage = 34;
// 表示ラベルの取得
if (location.search.match(/l=(\d+)/) != null) {
location.search.match(/l=(\d+)/);
nowLabel = parseInt(RegExp.$1);
} else {
nowLabel = 0;
}
addLink = '<div align=center><ul class="pager">';
for ( var i=1; i <= maxPage; i++){
if (i == nowPage) {
addLink += '&nbsp;&nbsp;<b>' + i + '</b>&nbsp;&nbsp;';
} else {
// デッキ
if ( (location.pathname == "/card/deck.php") || // デッキ
(location.pathname == "/card/duel_set.php") || // デュエルセット
(location.pathname == "/card/labeling.php") ) { // ラベルセット
if ( nowPage <= 3 ) {
if ( i <= 7 ) {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if (nowPage > maxPage - 3) {
if ( i > maxPage - 7 ) {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if ( (i <= nowPage + 3) && (i >= nowPage - 3) ) {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?p=' + i + '&l=' + nowLabel + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
}
}
}
}
}
addLink += '</ul></div>';
// ページャーの追加 ================================================================================================================
GM_addStyle("#rotate div.rotateInfo ul.pager { background: none repeat scroll 0 center transparent; clear: none; float: right; line-height: 2; margin: 5px 0px 3px 10px; padding: 0; text-align: right; width: 920px; }"); // 本拠地
GM_addStyle("#rotate div.rotateInfo ul.pager li a { padding: 3px 0px !important; }");
// すべて
var addHTML = xpath('//div[@class="rotateInfo clearfix label-all-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-all-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル1
var addHTML = xpath('//div[@class="rotateInfo clearfix label-blue-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-blue-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル2
var addHTML = xpath('//div[@class="rotateInfo clearfix label-green-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-green-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル3
var addHTML = xpath('//div[@class="rotateInfo clearfix label-red-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-red-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル4
var addHTML = xpath('//div[@class="rotateInfo clearfix label-blue-purple-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-blue-purple-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル5
var addHTML = xpath('//div[@class="rotateInfo clearfix label-brown-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-brown-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル6
var addHTML = xpath('//div[@class="rotateInfo clearfix label-purple-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-purple-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// 武将デュエルセット
var addHTML = xpath('//div[@class="rotateInfo clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
}
if ( (location.pathname == "/union/index.php") || (location.pathname == "/card/trade_card.php") || (location.pathname == "/union/learn.php") || (location.pathname == "/union/lvup.php") || (location.pathname == "/union/expup.php") || (location.pathname == "/union/remove.php") || (location.pathname == "/union/add_lv.php") ) {
// addLink = '<div id="card_uraomote-omote"><ul class="pager">';
addLink = '<ul class="pager">';
maxPage = 33;
// 通常のページャーを非表示
var rank = xpath('//ul[@class="pager"]', document);
for (var i=0; i < rank.snapshotLength; i++) {
rank.snapshotItem(i).style.display = "none";
}
// 現在の表示ページの取得
var nowPage = 0;
var getNowPage = xpath('//ul[@class="pager"]//b', document);
if (getNowPage.snapshotLength) {
nowPage = parseInt(getNowPage.snapshotItem(0).innerHTML);
}
// 最終ページの取得
var maxPage = nowPage;
if (location.pathname == "/union/add_lv.php") {
// スキルLvup時の追加生贄カード選択画面処理
var lastPage = xpath('//ul[@class="pager"]/li[@class="last"]', document);
if (lastPage.snapshotLength) {
lastPage.snapshotItem(0).innerHTML.match(/p=(\d+)/g);
maxPage = parseInt(RegExp.$1);
} else {
var lastPage = xpath('//ul[@class="pager"]/li/a', document);
lastPage.snapshotItem(lastPage.snapshotLength-1).href.match(/p=(\d+)/);
if (nowPage < parseInt(RegExp.$1)) {
maxPage = parseInt(RegExp.$1);
} else {
maxPage = nowPage;
}
}
// リンク用URL作成部分
var urlStr = xpath('//ul[@class="pager"]', document);
if (urlStr.snapshotLength) {
var t1 = urlStr.snapshotItem(0).innerHTML.split("<li><a href=");
var t2 = t1[1].split(" title=");
var t3 = t2[0].split("&amp;");
var t4 = t3[1];
for (var x=2;x < t3.length;x++){
t4 = t4 + "&amp;" + t3[x];
}
var t5 = t2[0].split("?")[0];
}
} else {
// 通常の最終ページ取得
var lastPage = xpath('//a[@title="last page"]', document);
if (lastPage.snapshotLength) {
lastPage.snapshotItem(0).href.match(/p=(\d+)/);
maxPage = parseInt(RegExp.$1);
} else {
var lastPage = xpath('//ul[@class="pager"]/li/a', document);
lastPage.snapshotItem(lastPage.snapshotLength-1).href.match(/p=(\d+)/);
if (nowPage < parseInt(RegExp.$1)) {
maxPage = parseInt(RegExp.$1);
} else {
maxPage = nowPage;
}
}
}
// 合成カード選択
var cardNo = 0;
if (location.search.match(/cid=(\d+)/) != null) {
location.search.match(/cid=(\d+)/);
cardNo = parseInt(RegExp.$1);
} else {
cardNo = 0;
}
// ラベル設定絞込み
var labelNo = 0;
var labelNodc = xpath('//form[@id="union_card_label_form"]/p/select/option[@selected="selected"]', document);
if (labelNodc.snapshotLength) {
labelNo = parseInt(labelNodc.snapshotItem(0).value);
}
// 合成可能カード絞込み
var unionNo = 0;
var unionNodc = xpath('//form[@id="union_card_select_form"]/p/select/option[@selected="selected"]', document);
if (unionNodc.snapshotLength) {
unionNo = parseInt(unionNodc.snapshotItem(0).value);
}
for ( var i=1; i <= maxPage; i++){
if (i == nowPage) {
addLink += '&nbsp<li><b>' + i + '</b></li>&nbsp';
} else {
// 合成元カード選択
if (location.pathname == "/union/index.php") {
if ( nowPage <= 3 ) {
if ( i <= 7 ) {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if (nowPage > maxPage - 3) {
if ( i > maxPage - 7 ) {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if ( (i <= nowPage + 3) && (i >= nowPage - 3) ) {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/union/index.php?union_card_select=' + unionNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
}
}
}
// トレード
if (location.pathname == "/card/trade_card.php") {
if ( nowPage <= 3 ) {
if ( i <= 7 ) {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop">&nbsp&nbsp' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop"><span onmouseover="this.textContent =\'' + ' ' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if (nowPage > maxPage - 3) {
if ( i > maxPage - 7 ) {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop">&nbsp&nbsp' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop"><span onmouseover="this.textContent =\'' + ' ' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if ( (i <= nowPage + 3) && (i >= nowPage - 3) ) {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop">&nbsp&nbsp' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="/card/trade_card.php?p=' + i + '#filetop"><span onmouseover="this.textContent =\'' + ' ' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
}
}
}
// 合成・修行・LVUP・削除用カード選択
if ( (location.pathname == "/union/learn.php") || (location.pathname == "/union/lvup.php") || (location.pathname == "/union/expup.php") || (location.pathname == "/union/remove.php") ) {
if ( nowPage <= 3 ) {
if ( i <= 7 ) {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if (nowPage > maxPage - 3) {
if ( i > maxPage - 7 ) {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if ( (i <= nowPage + 3) && (i >= nowPage - 3) ) {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href="' + location.pathname + '?cid=' + cardNo + '&p=' + i + '&label=' + labelNo + '#filetop"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
}
}
}
if (location.pathname == "/union/add_lv.php") {
if ( nowPage <= 3 ) {
if ( i <= 7 ) {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if (nowPage > maxPage - 3) {
if ( i > maxPage - 7 ) {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
} else {
if ( (i <= nowPage + 3) && (i >= nowPage - 3) ) {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '">&nbsp;&nbsp;' + i + '&nbsp;&nbsp;</a></li>';
} else {
addLink += '<li><a href=' + t5 + '?p=' + i + '&amp;' + t4 + ' title="' + i + '"><span onmouseover="this.textContent =\'' + '&nbsp;' + i + '&nbsp;\'" onmouseout="this.textContent =\'&nbsp;&nbsp;\'">&nbsp;&nbsp;</span></a></li>';
}
}
}
}
}
}
addLink += '</ul>';
// ページャーの追加 ================================================================================================================
GM_addStyle("#rotate div.rotateInfo ul.pager { background: none repeat scroll 0 center transparent; clear: none; float: right; line-height: 2; margin: 5px 0px 3px 10px; padding: 0; text-align: right; width: 920px; }"); // 本拠地
GM_addStyle("#rotate div.rotateInfo ul.pager li a { padding: 3px 0px !important; }");
// j$("#card_uraomote-omote").after(addLink);
// トレード出品
if ((location.pathname == "/card/trade_card.php") || (location.pathname == "/card/add_lv.php")){
GM_addStyle("#card_uraomote ul.pager li a { padding: 3px 0px !important; }");
var addHTML = xpath('//div[@id="card_uraomote-omote"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
}
// すべて
var addHTML = xpath('//div[@class="rotateInfo clearfix label-all-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-all-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル1
var addHTML = xpath('//div[@class="rotateInfo clearfix label-blue-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-blue-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル2
var addHTML = xpath('//div[@class="rotateInfo clearfix label-green-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-green-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル3
var addHTML = xpath('//div[@class="rotateInfo clearfix label-red-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-red-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル4
var addHTML = xpath('//div[@class="rotateInfo clearfix label-blue-purple-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-blue-purple-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル5
var addHTML = xpath('//div[@class="rotateInfo clearfix label-brown-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-brown-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
// ラベル6
var addHTML = xpath('//div[@class="rotateInfo clearfix label-purple-color-inner"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
var addHTML = xpath('//div[@class="rotateInfo bottom label-purple-color-bottom clearfix"]', document);
if (addHTML.snapshotLength) {
addHTML.snapshotItem(0).innerHTML += addLink;
}
}
function xpath(query,targetDoc) {
return document.evaluate(query, targetDoc, null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment