how to remove table row that contains specific code

Posting here is no longer possible, please use the forum of a filter list project, such as EasyList
Locked
maupa

how to remove table row that contains specific code

Post by maupa »

Here is an example. On page http://forum.ubuntu.pl/ I'd like to remove Table Row. Its source is:

Code: Select all

<tr align="center">
	<td class="alt2"><img src="images/Ubuntu/statusicon/forum_old_lock.png" alt="" id="forum_statusicon_154" border="0"></td>
	<td class="alt1Active" id="f154" align="left">
		<div>
			<a href="forumdisplay.php?f=154"><strong>Test</strong></a>
			
		</div>
		<div class="smallfont">Tutaj można testować swoje i forumowe atrakcje.</div>
		
		
	</td>
	<td class="alt2">

<div class="smallfont" align="left">
	<div>
		<span style="white-space: nowrap;">
		
		
		<a href="showthread.php?goto=newpost&t=117744" style="white-space: nowrap;" title="Idz do pierwszego nieprzeczytanego postu w temacie 'Test'"><strong>Test</strong></a></span>
	</div>
	<div style="white-space: nowrap;">
		<a href="member.php?find=lastposter&f=154">bart13</a>
	</div>

	<div style="white-space: nowrap;" align="right">
		Dzisiaj <span class="time">17:30</span>
		<a href="showthread.php?p=733844#post733844"><img title="Idź do ostatniego postu" class="inlineimg" src="images/Ubuntu/buttons/lastpost.gif" alt="Idź do ostatniego postu" border="0"></a>
	</div>
</div>
</td>
	<td class="alt1">2</td>
	<td class="alt2">97</td>

	
</tr>
Unique piece of this TR is (for example) forum_statusicon_154. Other words I'd like to remove this one row and leave untouched other rows. Is it possible?
jalousie
Posts: 4
Joined: Wed May 19, 2010 10:02 am

Re: how to remove table row that contains specific code

Post by jalousie »

we can select a element by the attribute of its parent , but not one by attribute of its child...

sorry for my previous answer, so using this :

Code: Select all

forum.ubuntu.pl##tbody#collapseobj_forumbit_113 > tr:last-child
maupa

Re: how to remove table row that contains specific code

Post by maupa »

Great!!!! Filter does exactly what I want!!!!

I just wonder how do I discover magic number "113" when I would like to hide other topic?

The question is simple, but complex answer or solution will be very helpful for lot of users. At list 3/4 of forums I use is coded in phpBB. For some reason, php BB developers do not want to give users possibility to mark thread as "ignored" (but users can mark thread as "watched"!!!). Forums are great bank of information and lot of ppl helping. But usable information ussualy are hidden between zylions junk posts. Thats why I was looking for workaround. And now, I am very close to it. When I will have relativelly easy way to block topic, subforum etc my virtual live will be much easier then before.

BTW, ABP is great piece of software and it is for years my very first extension I always install on new systems. Thank U, devteam and friends.
maupa

Re: how to remove table row that contains specific code

Post by maupa »

Well, now I'm not so optimistic. I understand syntax of filter (on page "forum.ubuntu.p" find section tbody (table body) with ID=collapseobj_forumbit_113" and hide/block last row of table. So... I can do the same for other tables, I discover I can also use "first-child". But I can't use "n-childe", or the best - child by ID. And that makes my idea not universal, even not usable. Maybe in the future there will be possible to block element by child parameter, i will look forward for it.

Anyway - thank U for help.
Locked