diff --git a/README.md b/README.md index c862550..9de210d 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,11 @@ ## About -Create user option to allow a user to hide #NSFW-hashtagged notices behind a blocker image until clicked. +WARNING: THIS IS ALPHA CODE, IT IS PRERELEASE AND SHOULD ONLY BE INSTALLED TO +HELP TEST OR YOU ARE WILLING TO TAKE RISKS. + +Create user option to allow a user to hide #NSFW-hashtagged notices behind a +blocker image until clicked. Works for both vanilla GNUSocial and with the Qvitter plugin. @@ -15,6 +19,16 @@ if you want to customize the blocker image, add a line to your config.php: $config['site']['sensitivecontent']['blockerimage'] = "/path/to/image.jpg"; +## Usage + +Individual users must go to their Settings page. A new sidebar menu item "Sensitive Content" +will be available. User checks or unchecks the checkbox on this page, and presses save. + + +If you have GNU Social open in other browser tabs, refresh them. If you are using Qvitter, also +refresh, but because Qvitter caches notices on the client side, only new sensitive images will +be hidden, it will not apply to notices retroactively unless you clear your browser cache. + ## License GNU Affero License @@ -23,4 +37,5 @@ GNU Affero License Thanks in particular to Hannes and Qvitter because looking at his code helped me a lot. -A tiny bit of content was taken from Qvitter to enhance Qvitter with this funcitonality. +A tiny bit of content was taken from Qvitter to enhance Qvitter with this functionality. + diff --git a/SensitiveContentPlugin.php b/SensitiveContentPlugin.php index f4c38a9..8eb7c4a 100644 --- a/SensitiveContentPlugin.php +++ b/SensitiveContentPlugin.php @@ -81,8 +81,7 @@ width: 100%; height: 100%; position: absolute; z-index: 100; -/*background-color: #d4baba;*/ -background-color: black; +background-color: #d4baba; background-image: url($blocker); background-repeat: no-repeat; background-position: center center;