PowerShell to Inject JavaScript or CSS using Custom Action in SharePoint

Requirement: Inject JavaScript or CSS in SharePoint without editing Master page. PowerShell to Inject JavaScript in SharePoint using Custom Action: Assuming “ga.js” file is already uploaded to Site Assets library, here is the PowerShell for JavaScript injection in SharePoint master page. Insert CSS using Custom Action – PowerShell Similarly, you can insert…

Read more