Skip to content

Instantly share code, notes, and snippets.

@AAGaming00
Created May 17, 2023 20:06
Show Gist options
  • Save AAGaming00/c3d9a67de723169a50dee9225b95cfbe to your computer and use it in GitHub Desktop.
Save AAGaming00/c3d9a67de723169a50dee9225b95cfbe to your computer and use it in GitHub Desktop.
Discord alt screenshot protector css
@-moz-document domain("discord.com") {
/*
Alt protector
Copyright 2023 AAGaming
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
[class^="channelTextArea"] {
display: none !important;
}
[class^="nameTag"][class*="canCopy"] > [class^="panelTitleContainer"] > [data-text-variant="text-sm/normal"] {
font-size: 0;
visibility: hidden;
}
[class^="nameTag"][class*="canCopy"] > [class^="panelTitleContainer"] > [data-text-variant="text-sm/normal"]::before {
float: left;
font-size: 14px;
visibility: visible;
content: "???????";
}
[class^="nameTag"][class*="canCopy"] > [class^="panelSubtextContainer"] > [data-text-variant="text-xs/normal"] {
font-size: 0;
visibility: hidden;
}
[class^="nameTag"][class*="canCopy"] > [class^="panelSubtextContainer"] > [data-text-variant="text-xs/normal"]::before {
display: flex;
font-size: 12px;
float: left;
visibility: visible;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cellipse fill='%23F5F8FA' cx='8.828' cy='18' rx='7.953' ry='13.281'/%3E%3Cpath fill='%23E1E8ED' d='M8.828 32.031C3.948 32.031.125 25.868.125 18S3.948 3.969 8.828 3.969 17.531 10.132 17.531 18s-3.823 14.031-8.703 14.031zm0-26.562C4.856 5.469 1.625 11.09 1.625 18s3.231 12.531 7.203 12.531S16.031 24.91 16.031 18 12.8 5.469 8.828 5.469z'/%3E%3Ccircle fill='%238899A6' cx='6.594' cy='18' r='4.96'/%3E%3Ccircle fill='%23292F33' cx='6.594' cy='18' r='3.565'/%3E%3Ccircle fill='%23F5F8FA' cx='7.911' cy='15.443' r='1.426'/%3E%3Cellipse fill='%23F5F8FA' cx='27.234' cy='18' rx='7.953' ry='13.281'/%3E%3Cpath fill='%23E1E8ED' d='M27.234 32.031c-4.88 0-8.703-6.163-8.703-14.031s3.823-14.031 8.703-14.031S35.938 10.132 35.938 18s-3.824 14.031-8.704 14.031zm0-26.562c-3.972 0-7.203 5.622-7.203 12.531 0 6.91 3.231 12.531 7.203 12.531S34.438 24.91 34.438 18 31.206 5.469 27.234 5.469z'/%3E%3Ccircle fill='%238899A6' cx='25' cy='18' r='4.96'/%3E%3Ccircle fill='%23292F33' cx='25' cy='18' r='3.565'/%3E%3Ccircle fill='%23F5F8FA' cx='26.317' cy='15.443' r='1.426'/%3E%3C/svg%3E");
background-repeat: no-repeat;
width: 1rem;
height: 12px;
content: "";
}
[class*="withTagAsButton"] > [class*="avatar"] {
filter: grayscale() blur(8px);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment