r/autowikibot • u/acini • Jan 21 '14
For mods: Hide bot's posts by default & Hover to view.
Hello moderators!
If you want AutoWikiBot comments to be collapsed by default with Hover to view, you can put following code in your stylesheet.
/* Autowikibot hover to display by /u/Dropping_fruits */
/* Code updates and discussion: http://redd.it/1vr0r2 */
.comment .md h5+h6+h4+p,.comment .md h5+h6+h4+p+hr,.comment .md h5+h6+h4+p+hr+blockquote,.comment .md h5+h6+h4+p+hr+blockquote+hr,.comment .md h5+h6+h4+p+hr+blockquote+hr+p,.comment .md h5+h6+h4+p+hr+blockquote+hr+p+p {
display: none;
}
.comment .md:hover h5+h6+h4+p,.comment .md:hover h5+h6+h4+p+hr,.comment .md:hover h5+h6+h4+p+hr+blockquote,.comment .md:hover h5+h6+h4+p+hr+blockquote+hr,.comment .md:hover h5+h6+h4+p+hr+blockquote+hr+p,.comment .md:hover h5+h6+h4+p+hr+blockquote+hr+p+p {
display: block;
}
.comment .md h5+h6+h4:after {
content: "Autowikibot post. Hover to view";
}
.comment .md:hover h5+h6+h4:after {
content: ""
}Thanks to /u/Dropping_fruits for the idea and CSS code.
12
Upvotes
9
u/acini Jan 21 '14
Wikipedia :
Picture
image source | about | /u/Dropping_fruits can reply with 'delete'. Will also delete if comment's score is -1 or less. | Summon: wikibot, what is something? | flag for glitch
6
u/Dropping_fruits Jan 21 '14
And if you don't want the text to be bold you can change
to
Also, could you credit me for the CSS as well as the idea?
7
u/aperson Feb 04 '14
Implemented in /r/Minecraft with a little twist.
7
u/duckvimes_ Jan 25 '14
Damn, just saw this hover-to-view for the first time. Much, much better than before--the old posts took up a lot of room; these are much more space-efficient. Hopefully more subs will un-ban autowikibot now.
3
u/[deleted] Mar 08 '14 edited Mar 08 '14
I'd like to ask how it know if it's an autowikibot post or not.
Edit: I see, it uses h5+h6+h4, detecting the successive h elements.
2
u/radd_it Feb 06 '14
A cool trick! Stumbled onto the bot doing this somwhere and went all whatwhatwhat?howsthatwork??
2
u/pictureganne Mar 26 '14
Click the source button.
2
u/Pokechu22 Apr 08 '14
Text
1
u/duckvimes_ Apr 05 '14
Any way to make it so that the
can be used in self-posts too? Would be useful in certain cases.