On SharePoint, Hide the ‘Sign-in As A Different User’ option through JQuery

Thursday, 31 March 2011 17:10 by tariq

A simple script you can add to your master page or content editor etc. to hide the “Sign in As a Different User” option that is available in the Personal Actions Menu.

<script src="/jQuery/jquery-1.4.1.js" type="text/javascript"></script>

<script type="text/JavaScript">

jQuery(document).ready(function($) {

var objects = document.getElementsByTagName("ie:menuitem");

for (var i = 0; i < objects.length; i++) {

itm = objects[i];

if (('#' + itm.id).indexOf("LoginAsDifferentUser") != -1) {

$('#' + itm.id).remove();

}

}

})

</script>

This is a modification of the original script found here

Comments

May 9. 2011 11:46

this is a great article... very well said

vigrx plus

May 20. 2011 05:36

Is it workable for wordpress self hosted also or for blogengine only..!

stun gun sale

May 20. 2011 05:37

Is it workable for wordpress self hosted also or for blogengine only..!

stun gun sale

May 21. 2011 05:58

What is this embedded code prepared for...!

shrink fibroids

May 21. 2011 16:10

This is a extremely fascinating content.  It is insightful so you have of course performed your groundwork previous to writing this unique write-up.  I must visit and browse your potential articles or blog posts.

Willie Thomas

May 21. 2011 19:11

It's a quite unique write-up.  It is quite instructive and also you have needless to say done your groundwork prior to composing the post.  I will likely need to revisit and follow your forthcoming content articles.

Joseph C. Johnson

May 22. 2011 22:10

What a remarkable blog site!  I really enjoy all of the material you have here.  I plan on social bookmarking this for upcoming reference.  Make sure you up-date this regularly.  

Malinoski11@gmail.com

May 24. 2011 08:11

Hi there this is kinda of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML. I'm starting a blog soon but have no coding know-how so I wanted to get guidance from someone with experience. Any help would be enormously appreciated!

reverse phone lookup free results

May 26. 2011 04:43

I merely wanted to inform you how much I appreciate all you've discussed to help improve the lives of an individual in this subject material. Through your articles, we have gone through just an inexperienced to an expert in the area. It is truly a honor to your endeavours. Thanks

Reiki

May 28. 2011 04:28

You've got a point. Thanks I like the way you put it.

top ten antivirus 2011

May 28. 2011 06:54

Between me and my husband we've owned more MP3 players over the years than I can count, including Sansas, iRivers, iPods (classic & touch), the Ibiza Rhapsody, etc. But, the last few years I've settled down to one line of players. Why? Because I was happy to discover how well-designed and fun to use the underappreciated (and widely mocked) Zunes are.

Andrew A. Sailer

May 28. 2011 08:55

Great site design and an excellent blog.
you’re awesome at expressing what you have to say.I'll be back for more...
Keep it up Smile

Mini stun guns

May 28. 2011 16:35

I discovered so numerous interesting stuff on sharepoint in your weblog especially its discussion. Good job.
Keep writing like this... Smile

stun gun knuckles

May 29. 2011 10:41

I would have to agree with most of the above, but nevertheless a couple of things have left me feeling a little unsure. I shall conduct some further research on it and come back to you with my thoughts. Thank you

sell house fast

May 29. 2011 12:38

What a great ability of writing this post contains! Its been a true pleasure to go through your post.I really like your style of blogging... Smile

Rechargeable stun guns

June 2. 2011 17:35

I think your opinions are reasonable.I totally understand what your stance in this issue.
It’s very well written... Smile

Las vegas web designer

June 2. 2011 17:49

This is a wonderful post. The content of this post is really helpful for us.Keep it up by posting such an article.

bangla blog

June 3. 2011 23:25

I loved your blog article.

Mina Astudillo

June 11. 2011 07:38

This is a particularly interesting write-up.  It is extremely useful therefore you have definitely conducted your study well before producing this post.  I will have to keep returning and observe your potential content.

Robert W. Anderson

June 17. 2011 10:07

There are actually a whole lot of details like that to take into consideration. That may be a great point to bring up. I provide the thoughts above as general inspiration but clearly there are questions just like the one you carry up where crucial thing will likely be working in trustworthy good faith. I don?t know if greatest practices have emerged around issues like that, however I am sure that your job is clearly recognized as a good game. Each girls and boys really feel the impression of just a second’s pleasure, for the remainder of their lives.

Funny Love Quotes

June 17. 2011 20:20

Good post. I be taught something tougher on different blogs everyday. It will all the time be stimulating to read content material from different writers and follow a little bit something from their store. I’d desire to make use of some with the content on my blog whether or not you don’t mind. Natually I’ll provide you with a link in your internet blog. Thanks for sharing.

Funny Quotes about Love

June 18. 2011 00:11


Thank you for this wonderfull blog

Lizzie Ochoa

June 20. 2011 10:02


great post.
I look forward to your next post.

maroochydore accommodation

June 21. 2011 22:28


Hey - nice blog, just looking around some blogs, seems a pretty nice platform you are using.
Thank you for your post
I love your blog
Interesting point of view, thank you for sharing it.
Hey, very interesting post, i look forward your next article !
Thank you for this wonderfull blog
Great job on maintaining this website. Do you have an RSS feed I can subscribe with?
I admire the valuable information you offer in your articles.
I have been lurking for some time, many thanks to the Admin here too.
I was very pleased to find this site.I wanted to thank you for this great read!!

Pandranol

June 21. 2011 23:15

You own a very interesting blog covering lots of topics I am interested as well.I just added your site to my favorites so I can read more in the next days... Please continue your excellent work

Hugo Kovach

June 22. 2011 08:19

I want to thank you for the efforts you may have created in writing this put up. I'm hoping the similar ideal do the job from you within the future too. Truly the blogging is spreading its wings quickly. Your write up is often a fine instance of it.
Thanks for the great content... Smile

vertigo causes

June 22. 2011 18:26

This blog is what got me through the day today. Every time I read it, I just get more and more excited about whats next. Very refreshing blog and very refreshing ideas. Im glad that I came across this when I did. I love what youve got to say and the way you say it... Smile

vertigo medication

June 22. 2011 18:31

Loved to read your blog.

Pandranol

June 23. 2011 02:49

squash string comment

ASHAWAY SQUASH STRING

June 24. 2011 19:19

Hey, this is good information! Thanks for sharing!

Ruby

June 25. 2011 20:31

You will have another opportunity to experience your photograph used having little Pandaranol.

Pandaranol

June 25. 2011 21:24

You will have one other opportunity contain a photo taken using a teen Pandaranol.

Pandaranol

June 25. 2011 22:47

You will get a further an opportunity to have a person's photograph grabbed by having a much younger Pandaranol.

Pandaranol

June 25. 2011 23:41

You've got a different opportunity to own ones photo obtained by using a adolescent Pandaranol.

panda ranol

June 26. 2011 19:22

Helpful blog post and great sharing. Some things in here I have not thought about before, I would like to take this moment to say that I really like this blog. It's been a great resource of knowledge for me. Thank you so much!... Smile

drug tests

June 26. 2011 19:36

It's a shame you don't have a donate button! I'd without a doubt donate to this superb blog! I guess for now i'll settle for book-marking and adding your RSS feed to my Google account. I look forward to new updates and will share this blog with my Facebook group. Talk soon!

contact lenses without prescription

Comments are closed