GMAIL: hide [Invite a Friend] & [Chat]

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

GMAIL: hide [Invite a Friend] & [Chat]

Post by guest_7 »

Hello there,

in GMAIL I would like to hide (permanently, or at least until Google changes the code / script again):

a) [Invite a Friend]

and

b) [Chat]

I do want to keep [Labels] etc, which prevents me from using http://userstyles.org/styles/15583

I succeeded in _temporarily_ hiding a) and b) for a day or a few hours with { Ctrl + Shift + K } - but they just keep coming back...

~.~.~

For one, I think it might be a good idea (for a future release) if in "Compose Element Hiding Rule" there was the option of hitting { Ctrl + A } or other to select all html parameters at once... maybe that would help ?

~.~.~

For now:

Does anyone have an idea or suggestion how to effectively hide these elements, [Invite a Friend] & [Chat] in GMAIL ?

Thanks!
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

Try these two:

Code: Select all

mail.google.com##DIV > DIV[style="width: 9px;"]:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV + DIV + DIV
mail.google.com##DIV > DIV[style="width: 9px;"]:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV
guest_7

Post by guest_7 »

thanks for your quick reply...

however,

it doesn't work.

~.~.~

the gmail script seems to have become rather nifty and mercurial of late... difficult to "catch" (for me, at least).

any further input / ideas much appreciated!
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

Then what about these two?

EDIT1: wait a minute

Note, copy everything in that box, everything at once. Then simply paste it with Ctrl+V while the preferences window is open.
Remember to click Apply.
guest_7

Post by guest_7 »

same thing. no luck yet...

(please recall, a gentle reminder: I do want to keep [Labels], as well as a few others from the "Labs" features; and no - the "Labs" features wouldn't have no influence on this issue - that shouldn't matter)
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

Adblock Plus Fan wrote:EDIT1: wait a minute
More like an hour...

OK how about this:

Code: Select all

mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV + DIV + DIV:last-child
mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV + DIV
mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child
mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV
mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child
mail.google.com##BODY > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV:last-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child + DIV > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child > DIV:first-child
http://mail.google.com/mail/channel/bind?at
Same as before, copy everything in that box, everything at once. Then simply paste it with Ctrl+V while the preferences window is open.
Remember to click Apply.

It's the best I can squeeze it down to so far. (While still having the Labels show up after a reload)
guest_7

Post by guest_7 »

Thanks for your efforts thus far, Adblock Plus Fan.

- no luck -

has it worked in _your_ gmail ?
guest_7

Post by guest_7 »

maybe it's time to take a closer look at this one with the DOM Inspector (or other) ... ?

tough nut to crack, this one. is it not ?
guest_7

Post by guest_7 »

first one to "crack" it gets 500 gummy points...

promise!
User avatar
Hubird
Posts: 2850
Joined: Thu Oct 26, 2006 2:59 pm
Location: Australia
Contact:

Post by Hubird »

Code: Select all

mail.google.com#DIV(class=nH pp ps)
???
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

guest_7 wrote:has it worked in _your_ gmail ?
It looks like this in my gmail.
Image

When you say "no luck", you mean those rules has _No Effect_ at all?
guest_7

Post by guest_7 »

well,

"Hubird's rule" has an effect - but not the desired one... it gets rid of many things (including [Labels]).

and the rules you, Adblock Plus Fan, suggested: no effect. no change.

fresh ideas welcome!

ps: I'm using "https" for gmail (both via customize-google _and_ by the "Settings" menu of gmail itself). - But again, I don't think this, nor the "Labs" features would really affect this issue... I'm just mentioning it, cuz maybe you think differently ?
guest_7

Post by guest_7 »

some code to mull over... just in case you're wondering: yes, the "smiley" is part of the code...

~.~.~

O.a_=function $xX(a){for(;a&&a!=this.gn&&!ne(a,rOa);)a=a[D];if(a&&a!=this.gn)if(a=this.C.vg(L,fQa,a)[0]){a=iK.PQa(a.id,this);return iK.Ro(a,this.we)}return null};var FOa="Give ",GOa=" to:",HOa="p2",IOa="p4",JOa='</div><div><input type=text id="',KOa="p0",LOa='"></input></div><table cellpadding="0" class="',MOa='"><tr><td><button id="',NOa="pZ",OOa="Send Invite",POa='</button> <span id="',QOa="p3",ROa='</span></td></tr></table></div><div id="',SOa="Preview Invite";var TOa="invites";o(IN,rN);wu().mb(2,UOa);O=IN[h];O.U3b=function $yX(){var a=this.g().Q()[X](aG)>0;a&&this.nq();this.ub(a)};var kQa=" left";O.Oub=function $zX(){return this.g().Q()[X](aG)+kQa};var lQa="ivbtn",mQa="ivcs",XN="ivi",nQa="ivpl";O.Gp=function $AX(){var a=this.g().Q();return{Bg:ik,nOd:a[X](aG),FA:this.F(lQa),hmc:this.F(mQa),XB:this.F(XN),si:this.F(nQa),zQc:this.Oub()}};var oQa="Invite a friend",pQa="pY",qQa="p1";
O.Jb=function $BX(){fp();try{var a=this.g();this.Gc(oQa);this.sO(pQa);this.aCb=new yt(a);this.aCb.tb(EOa(this.Gp()));this.ba(this.aCb);this.eo=new Vq(a);E(this.eo.b(),qQa);this.ba(this.eo.rR())}finally{hp()}};O.nq=function $CX(){var a=this.b(mQa);if(a)e(a,this.Oub())};O.R=function $DX(){IN.B.R[k](this);this.l.h(this.b(lQa),P,this.yt);this.l.h(this.b(nQa),P,this.P0a);var a=this.b(XN);this.l.h(a,vg,this.om);this.g().Z9().Lv(a);this.U3b()};O.ha=function $EX(){IN.B.ha[k](this);this.l.jb();this.g().Z9().aw(this.b(XN))};
var rQa="Please specify who you wish to invite.";O.yt=function $FX(){var a=this.b(XN);if(Fn(a[J]))nw(rQa);else{var b=new lN(this.g(),a[J]);b.wd(this);b();oa(a,q)}};var sQa="Oops, we weren't able to send your invite. Please try again later.";
guest_7

Post by guest_7 »

some more code... maybe it helps ?

~.~.~

<div class="dJ"></div><div class="pi" style="height: 1px;"><div class="ph i" style="width: 1px;"></div><div class="ph j" style="width: 1px;"></div><div class="l h"></div></div></div></div></div></div></div></div><div style="" class="nH pp ps"><div class="nH"><div class="nH s"><div class="nH"><div class="nH r"><div class="nH"><div class="pi" style="height: 4px;"><div class="ph p" style="width: 4px;"></div><div class="ph q" style="width: 4px;"></div><div class="l o"></div></div><div class="l m"><div class="l n" style="margin-left: 4px;"><div class="k" style="margin: -2px 4px 0px 0px; padding: 0px;"><div class="diLZtc"><div class="nH pr"><div class="py" idlink=""><img class="pq" src="a_data_004/cleardot.gif">&nbsp;<h2 class="pw"><span class="qe"><span class="qg df"></span><span class="qf">YYYYYYYYYYYYYYYYY</span>&nbsp;</span></h2><div class="qn"></div></div></div></div></div></div></div><div class="dJ"></div><div class="pi" style="height: 4px; display: none;"><div class="ph i" style="width: 4px;"></div><div class="ph j" style="width: 4px;"></div><div class="l h"></div></div></div></div><div class="nH pu"><div class="nH"><div class="pi" style="height: 4px; display: none;"><div class="ph p" style="width: 1px;"></div><div class="ph q" style="width: 1px;"></div><div class="l o"></div></div><div class="l m"><div class="l n" style="margin-left: 1px;"><div class="k" style="margin: 0px 1px 0px 0px; padding: 0px;"><div class="diLZtc"><div style="" class="nH pt"><div class="nH"><div><div class="dF"><div class="dH"><input aria-haspopup="true" id=":f6" autocomplete="off" ignoreesc="true" title="Search, add, or invite" label="Search, add, or invite" class="dI dG" type="text"></div></div></div></div><div style="display: none;" class="nH"><div class="nH"><div id=":f4" class="nH"><div class="uk"><div class="uF"><div id=":f3" class="uE df"></div><div class="uD"><span id=":f2" class="uC">YYYYYYYYYYYYYYYYY</span></div></div><div id=":f1" class="uF"><div id=":f0" class="uc" role="alert"><span class="uu" action="si" role="link" tabindex="0">Sign into chat</span></div></div><div style="display: none;" id=":ez" class="nH"><table class="uJ" cellpadding="0"><tr class="uI"><td style="width: 16px;" id=":ey" class="uK"><div class="VB6tt"></div><div style="display: none;" class="uB">?</div></td><td id=":ex" class="uh"><div class="VB6tt"></div><div class="nH"><div class="nH"><div id=":ew" class="Ae"><div class="uf" id=":ep">Set status here</div></div></div></div></td><td style="width: 20px; vertical-align: middle;" id=":ev" class="uO"><div class="VB6tt"></div><div class="nH"><img class="uM" id=":eu" src="a_data_004/cleardot.gif" alt="Status menu"></div></td></tr></table></div></div></div></div></div><div class="nH"><div class="nH"><div class="nH"><div class="nH"><div height="0"></div></div></div><div class="nH"><div class="nH"><div height="0"></div></div></div><div style="display: none;" class="nH"><div class="nH"><div height="0"></div></div></div></div></div><div style="display: none;" class="nH"><div style="" class="vy"><div class="vB"><table class="cf vH" id=":ef" tabindex="0" role="listbox" style="width: 162px;" cellpadding="0"><col class="vA"><col class="vw"><col id=":ee" class="vo"><tbody id=":dy" class="vC" idlink="" role="option" aria-labelledby=":dx :dw"><tr class="vI"><td><img class="vt df BUw1sf" id=":dx" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":dv" class="vr" colspan="2"><span id=":dw" class="HHshnc">YYYYYYYYYYYYYYYYY</span><span id=":ds" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":du" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":dr" style="display: none;">? </span><span id=":dt" class="vG"></span></td></tr></tbody><tbody id=":dp" class="vC" idlink="" role="option" aria-labelledby=":do :dn"><tr class="vI"><td><img class="vt df BUw1sf" id=":do" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":dm" class="vr" colspan="2"><span id=":dn" class="HHshnc">ZZZZZZZZZZZZZZZZZZZ</span><span id=":dj" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":dl" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":di" style="display: none;">? </span><span id=":dk" class="vG"></span></td></tr></tbody><tbody id=":dg" class="vC" idlink="" role="option" aria-labelledby=":df :de"><tr class="vI"><td><img class="vt df BUw1sf" id=":df" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":dd" class="vr" colspan="2"><span id=":de" class="HHshnc">YYYYYYYYYYYYYYYYY</span><span id=":da" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":dc" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":d9" style="display: none;">? </span><span id=":db" class="vG"></span></td></tr></tbody><tbody id=":d7" class="vC" idlink="" role="option" aria-labelledby=":d6 :d5"><tr class="vI"><td><img class="vt df BUw1sf" id=":d6" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":d4" class="vr" colspan="2"><span id=":d5" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":d1" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":d3" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":d0" style="display: none;">? </span><span id=":d2" class="vG"></span></td></tr></tbody><tbody id=":cy" class="vC" idlink="" role="option" aria-labelledby=":cx :cw"><tr class="vI"><td><img class="vt df BUw1sf" id=":cx" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":cv" class="vr" colspan="2"><span id=":cw" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":cs" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":cu" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":cr" style="display: none;">? </span><span id=":ct" class="vG"></span></td></tr></tbody><tbody id=":cp" class="vC" idlink="" role="option" aria-labelledby=":co :cn"><tr class="vI"><td><img class="vt df BUw1sf" id=":co" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":cm" class="vr" colspan="2"><span id=":cn" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":cj" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":cl" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":ci" style="display: none;">? </span><span id=":ck" class="vG"></span></td></tr></tbody><tbody id=":cg" class="vC" idlink="" role="option" aria-labelledby=":cf :ce"><tr class="vI"><td><img class="vt df BUw1sf" id=":cf" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":cd" class="vr" colspan="2"><span id=":ce" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":ca" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":cc" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":c9" style="display: none;">? </span><span id=":cb" class="vG"></span></td></tr></tbody><tbody id=":c7" class="vC" idlink="" role="option" aria-labelledby=":c6 :c5"><tr class="vI"><td><img class="vt df BUw1sf" id=":c6" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":c4" class="vr" colspan="2"><span id=":c5" class="HHshnc">ZZZZZZZZZZZZZZZZ@gmail.com</span><span id=":c1" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":c3" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":c0" style="display: none;">? </span><span id=":c2" class="vG"></span></td></tr></tbody><tbody id=":by" class="vC" idlink="" role="option" aria-labelledby=":bx :bw"><tr class="vI"><td><img class="vt df BUw1sf" id=":bx" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":bv" class="vr" colspan="2"><span id=":bw" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":bs" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":bu" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":br" style="display: none;">? </span><span id=":bt" class="vG"></span></td></tr></tbody><tbody id=":bp" class="vC" idlink="" role="option" aria-labelledby=":bo :bn"><tr class="vI"><td><img class="vt df BUw1sf" id=":bo" src="a_data_004/cleardot.gif" alt="Offline"></td><td id=":bm" class="vr" colspan="2"><span id=":bn" class="HHshnc">ZZZZZZZZZZZZZZZZ</span><span id=":bj" style="display: none;" class="vu">&nbsp; Invited</span></td></tr><tr id=":bl" style="display: none;" class="vm"><td></td><td colspan="2" class="vn"><span id=":bi" style="display: none;">? </span><span id=":bk" class="vG"></span></td></tr></tbody></table></div></div></div><div style="display: none;" class="nH"><div class="ow"><div class="ox"><div class="oG"><div id=":eb" class="oD" idlink="" tabindex="0" role="button" aria-haspopup="true"><span class="oJ">Options</span><img class="oE" id=":ea" src="a_data_004/cleardot.gif" alt=""></div></div><div id=":ec" class="oJ oL" idlink="" tabindex="0" role="link">Add Contact</div></div><div id=":e9" class="oy" tabindex="0" role="menu"></div></div></div></div></div></div></div></div><div class="dJ"></div><div class="pi" style="height: 1px;"><div class="ph i" style="width: 1px;"></div><div class="ph j" style="width: 1px;"></div><div class="l h"></div></div></div></div></div></div></div></div><div style="" class="nH pp ps"><div class="nH"><div class="nH pY"><div class="nH"><div class="nH r"><div class="nH"><div class="pi" style="height: 4px;"><div class="ph p" style="width: 4px;"></div><div class="ph q" style="width: 4px;"></div><div class="l o"></div></div><div class="l m"><div class="l n" style="margin-left: 4px;"><div class="k" style="margin: -2px 4px 0px 0px; padding: 0px;"><div class="diLZtc"><div class="nH pr"><div class="py" idlink=""><img class="pq" src="a_data_004/cleardot.gif">&nbsp;<h2 class="pw">Invite a friend</h2><div class="qn"></div></div></div></div></div></div></div><div class="dJ"></div><div class="pi" style="height: 4px; display: none;"><div class="ph i" style="width: 4px;"></div><div class="ph j" style="width: 4px;"></div><div class="l h"></div></div></div></div><div class="nH pu"><div class="nH"><div class="pi" style="height: 4px; display: none;"><div class="ph p" style="width: 1px;"></div><div class="ph q" style="width: 1px;"></div><div class="l o"></div></div><div class="l m"><div class="l n" style="margin-left: 1px;"><div class="k" style="margin: 0px 1px 0px 0px; padding: 0px;"><div class="diLZtc"><div style="display: none;" class="nH pt"><div class="nH"><div class="p2"><div class="p4">Give Google Mail to:</div><div><input aria-haspopup="true" id=":qt" class="p0" type="text"></div><table class="cf" cellpadding="0"><tbody><tr><td><button id=":qv" class="pZ">Send Invite</button> <span id=":qu" class="p3">97 left</span></td></tr></tbody></table></div><div id=":qs" class="pU" tabindex="0" role="link">Preview Invite</div></div><div class="nH"><div style="display: none;" class="b8 p1"><table class="cf ve" role="alert" cellpadding="0" cellspacing="0"><tbody><tr><td class="vj"></td><td class="vi"></td><td class="vk"></td></tr><tr><td class="vi"></td><td class="vh"></td><td class="vi"></td></tr><tr><td class="vf"></td><td class="vi"></td><td class="vg"></td></tr></tbody></table></div></div></div></div></div></div></div><div class="dJ"></div><div class="pi" style="height: 1px;"><div class="ph i" style="width: 1px;"></div><div class="ph j" style="width: 1px;"></div><div class="l h"></div></div></div></div></div></div></div></div></div></div>
User avatar
Adblock Plus Fan
Posts: 1255
Joined: Sat Feb 24, 2007 11:08 am

Post by Adblock Plus Fan »

guest_7 wrote:ps: I'm using "https" for gmail (both via customize-google _and_ by the "Settings" menu of gmail itself).
I never used this customize-google extension, but I guess there's always the possibility that you have some extension or userscript that inserts a few elements here and there in your gmail. That could explain why those rules I composed doesn't take effect in your browser.

Anyway, before I even go on, I'd like to know if you're fine with what appears in my earlier screenshot or if you really want those blue frames completely gone.
Locked