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
#Advanced check if user is administrator. It elevates the powershell to one with administrator privileges if not admin | |
# Get the ID and security principal of the current user account | |
$myWindowsID = [System.Security.Principal.WindowsIdentity]::GetCurrent() | |
$myWindowsPrincipal = New-Object System.Security.Principal.WindowsPrincipal($myWindowsID) | |
# Get the security principal for the administrator role | |
$adminRole = [System.Security.Principal.WindowsBuiltInRole]::Administrator | |
# Check to see if we are currently running as an administrator |
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
$path = 'C:\Program Files (x86)\Microsoft SQL Server Management Studio 18\Common7\IDE\ssms.pkgundef' | |
$theme = '[$RootKey$\Themes\{1ded0138-47ce-435e-84ef-9ec1f439b749}]' | |
(Get-Content $path).replace($theme, "// $theme") | Out-File $path |
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
// ==UserScript== | |
// @name Dark Messenger and hotfixes | |
// @namespace https://github.com/Damperen | |
// @version 2.1.8 | |
// @description Dark mode for Messenger and normalized videos | |
// @author https://github.com/Damperen | |
// @match https://www.messenger.com/* | |
// @grant none | |
// @run-at document-idle | |
// @icon https://i.imgur.com/VNn3FEX.png |
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
// ==UserScript== | |
// @name Native Dark Messenger | |
// @namespace https://github.com/Damperen | |
// @version 1.9.5 | |
// @description Almost Native dark mode for Messenger | |
// @author https://github.com/Damperen | |
// @match https://www.messenger.com/* | |
// @grant none | |
// @run-at document-idle | |
// @icon https://i.imgur.com/VNn3FEX.png |