How to hide "Notice me" in the menu of SharePoint ECB"

Source: Internet
Author: User

Old problem ..

1. Set the Permission Policy for the entire web application and remove the permission definition for "create notification. Http: // Management Center/_ admin/vsmask. aspx

2. If you only want to remove it from a list or document library, you can use Js.

For documentlibrary
Eval (adddoclibmenuitems. tostring (). Replace ('hasrights (0x80, 0x0) ', 'false & hasrights (0x80, 0x0 )'))

For list
Eval (addlistmenuitems. tostring (). Replace ('hasrights (0x80, 0x0) ', 'false & hasrights (0x80, 0x0 )'))

 

As for how to use this code .. You must be smart...

 

Update: it is still troublesome to find out how to use it. paste the code.

 

<SCRIPT>
Function fuckalert (){
If (typeof (adddoclibmenuitems) = 'function '){
Eval (adddoclibmenuitems. tostring (). Replace ('hasrights (0x80, 0x0) ', 'false & hasrights (0x80, 0x0 )'))
Window ["adddoclibmenuitems"] = adddoclibmenuitems
} Else {
Window. setTimeout ("fuckalert ()", 500 );
}
}
_ Spbodyonloadfunctionnames. Push ("fuckalert ")
</SCRIPT>

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.