Hello everyone!
I am solved the given question (not in the best way) but maybe someone will find it useful.
- Download
xpath.js
library (http://js-xpath.sourceforge.net/xpath-tutorial.html)
- Place the library in the following path:
../lib/scripts/xpath.js
- When using the file
../conf/userscript.js
, it is necessary to somehow limit the scope of XPath, for this it is proposed to wrap the element of interest in <WRAP xpath_label> </WRAP>
- In this case, this is the strata table!
- The following code will solve the problem that I outlined in the first post
vim ../conf/userscript.js
// Hide rows of duplicates (Duplicates = 1)
var object = document.evaluate("//div[contains(@class, 'wrap_xpath_label')]/descendant::span[text()='1']/ancestor::tbody/child::tr", document, null, XPathResult.ANY_TYPE, null);
var thisObject = object.iterateNext();
while (thisObject) {
thisObject.style.display="none";
thisObject = object.iterateNext();
}