Merge pull request #473 from glowing-bear/hide-nsfw

Don't automatically show NSFW content
rewrite-with-urlplugin
David Cormier 11 years ago
commit 967aac5dba
  1. 6
      css/glowingbear.css
  2. 2
      index.html
  3. 3
      js/plugin-directive.js

@ -535,6 +535,12 @@ li.buffer.indent.private a {
padding-right: -15px;
}
.settings-help {
display: block;
margin: -5px 0 -3px 19px;
font-size: small;
}
/* */
/* Mobile layout */
/* */

@ -348,7 +348,7 @@ $ openssl req -nodes -newkey rsa:4096 -keyout relay.pem -x509 -days 365 -out rel
<div class="checkbox">
<label>
<input type="checkbox" ng-model="noembed">
Hide embedded content by default
Hide embedded content by default<span class="text-muted settings-help">NSFW content will be hidden</small>
</label>
</div>
</form>

@ -19,7 +19,8 @@ weechat.directive('plugin', ['$rootScope', function($rootScope) {
$scope.displayedContent = "";
$scope.plugin.visible = $rootScope.auto_display_embedded_content;
// Auto-display embedded content only if it isn't NSFW
$scope.plugin.visible = $rootScope.auto_display_embedded_content && !$scope.plugin.nsfw;
// user-accessible hash key that is a valid CSS class name
$scope.plugin.className = "embed_" + $scope.plugin.$$hashKey.replace(':','_');

Loading…
Cancel
Save