Skip to content

Instantly share code, notes, and snippets.

@joladev
Last active December 15, 2015 13:48
Show Gist options
  • Save joladev/5269624 to your computer and use it in GitHub Desktop.
Save joladev/5269624 to your computer and use it in GitHub Desktop.
function april {
param([Switch] $Undo)
$customCssPath = "C:/Users/$env:username/AppData/Local/Google/Chrome/User Data/Default/User StyleSheets/Custom.css"
$customCss = "body { -webkit-transform: rotate(180deg); }"
if ($Undo)
{
copy "$customCssPath.backup" $customCssPath
}
else
{
copy $customCssPath "$customCssPath.backup"
Add-Content $customCssPath "`r`n$customCss"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment