Skip to content

Instantly share code, notes, and snippets.

@rubo77
Last active September 28, 2015 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rubo77/aa4757bf6442d5ebf116 to your computer and use it in GitHub Desktop.
Save rubo77/aa4757bf6442d5ebf116 to your computer and use it in GitHub Desktop.
Script for Stylish to hide trolling users in http://forum.freifunk.net
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("forum.freifunk.net") {
article[data-user-id="99999"] .contents {
overflow: hidden;
max-height:0px;
-webkit-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
-moz-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
-o-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
-moz-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
-o-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915); /* custom */
}
article[data-user-id="99999"]:hover .contents {
max-height:2000px;
-webkit-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
-moz-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
-o-transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915);
transition: all 500ms cubic-bezier(0.525, 0.060, 0.475, 0.915); /* custom */
-webkit-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
-moz-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
-o-transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915);
transition-timing-function: cubic-bezier(0.525, 0.060, 0.475, 0.915); /* custom */
}
@media all and (max-height: 700px) {
.topic-body{
padding-bottom:0px;
margin-bottom:-15px;
}
.ember-view{
margin-bottom: 10px;
}
nav.post-controls{
margin-top: -18px;
}
}
nav.post-controls:hover{
}
}
@rubo77
Copy link
Author

rubo77 commented Sep 23, 2015

Additionally this minimizes the space used by the post controls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment