Механик пишет:И последний вопрос:
А если хочется игнорить не одного, а двух и более юзеров? Есть возможность ввести несколько id?
сделал тебе массивчик id
// This is a Greasemonkey user script. To install it, you need
// Greasemonkey 0.3 or later: http://greasemonkey.mozdev.org/
// Then restart Firefox and revisit this script.
// Under Tools, there will be a new menu item to "Install User Script".
// Accept the default configuration and install.//
// --------------------------------------------------------------------
//
// ==UserScript==
// @name TWIT
// @author xeye
// @version 0.1.1
// @date 2006-11-29
// @namespace http://www.socionica.com
// @description twit post
// @include http://www.socionica.com/*
// ==/UserScript==
// ==Code==
var allLinks, thisLink;
var blockIds = [179,118,452,2];
for (var ids = 0; ids < blockIds.length; ids++) {
allLinks = document.evaluate(
"//div/div/div/div/dl/dt/strong/a[@href='profile.php?id="+blockIds[ids]+"']/ancestor::div[4]",
document,
null,
XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,
null);
for (var i = 0; i < allLinks.snapshotLength; i++) {
thisLink = allLinks.snapshotItem(i);
thisLink.parentNode.removeChild(thisLink);
}
}
// ==/Code==