This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
$("table[title='Calendar']").find("a[title]").removeAttr("title"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$userName = "User account you want to modify goes here" | |
$site = Get-SPSite "URL for SP site goes here" | |
$serviceContext = Get-SPServiceContext($site) | |
$profileManager = new-object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext) | |
if($profileManager.UserExists($userName)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-PSSnappin Microsoft.SharePoint.PowerShell | |
$web = Get-SPWeb "your url here" | |
$list = $web.Lists["your doc lib title here"] | |
$docs = $list.Items | Where-Object { $_["your choice column name here"] -eq "your choice here" } | $_.File | % { | |
# do something to each document in here | |
# can reference the document using $_ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("a[title='Actions']").next("ul").find("a").each(function (index, element) { | |
$(element).attr("onclick", "javascript: NewOrEditV4Core(event, '" + $(element).attr("href") + "')"); | |
$(element).attr("href", "#"); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SP.SOD.executeOrDelayUntilScriptLoaded(function() { | |
var oldDisplayCreateSharedFolderDialog = DisplayCreateSharedFolderDialog; | |
DisplayCreateSharedFolderDialog = function (rootFolder, webPartID, userSource) { | |
oldDisplayCreateSharedFolderDialog(rootFolder, webPartID, userSource); | |
$("#csfd_invitePeopleBtn").hide(); | |
}; | |
}, "createsharedfolderdialog.js"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Starcrossed = Starcrossed || {}; | |
Starcrossed.PostRenderCallback = function(ctx) { | |
if (!Starcrossed.fixed) { | |
$("#WebPart" + ctx.wpq).find("tbody[id^='titl']").each(function(idx, elem) { | |
// Remove item count | |
$(elem).find("td").children().last().remove(); | |
// Remove column title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module Microsoft.Online.SharePoint.Powershell | |
Function Invoke-LoadMethod() { | |
param( | |
[Microsoft.SharePoint.Client.ClientObject]$Object = $(throw "Please provide a Client Object"), | |
[string]$PropertyName | |
) | |
$ctx = $Object.Context | |
$load = [Microsoft.SharePoint.Client.ClientContext].GetMethod("Load") | |
$type = $Object.GetType() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module Microsoft.Online.SharePoint.Powershell | |
$password = Read-Host -Prompt "Enter password" -AsSecureString | |
[Microsoft.SharePoint.Client.ClientContext]$context = New-Object Microsoft.SharePoint.Client.ClientContext("https://jjkllc.sharepoint.com/sites/kma/extranet") | |
$context.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials("pchoquette@jjkllc.com", $password) | |
$web = $context.Web | |
$context.Load($web) | |
$context.Load($web.RoleAssignments) | |
$context.ExecuteQuery() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ms-newdoc-callout-main > hr, | |
#js-newdocWOPI-divFolder-WPQ2 { | |
display: none; | |
} | |
.js-callout-title { | |
text-indent: -9999px; | |
line-height: 0; | |
} |
OlderNewer