Archived Comments (locked)

in
Subscribe to Archived Comments 2 posts, 2 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
billythegates Scriptwright

das geht auch noch effizienter...
(function() {
var patterns = new Array(
"//div[contains(h2/span,'Telegramm')]",
"//div[contains(h2/span,'Neuigkeiten')]",
"//div[contains(h2/span,'Schaufenster')]",
"//div[starts-with(@id,'leftAds')]/div/table",
"//div[starts-with(@id,'rightAds')]/div/table");

var results;
for (var i = 0; i < patterns.length; i++) {
results = document.evaluate(patterns[i], document, null,
XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var j = 0; j < results.snapshotLength; j++) {
results.snapshotItem(j).style.display = "none";
}
}
})();

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel