r/reddithax • u/fragglet • Jul 28 '15
CSS hack to force submitters to acknowledge rules
I just put this together for /r/Solving_A858 and wanted to share.
We have a recurring problem with submitters who don't read the rules - even after I put "READ THE WIKI AND SIDEBAR RULES" in large red letters in the background to the text box on the submit page. I've been trying hard to improve the signal-to-noise ratio as a lot of people have been complaining about seeing the same posts over and over again.
So I've come up with a CSS hack that forces users to read the "submitting to ..." box and click a link before the submit button will be shown.
The CSS is as follows:
.submit .btn {
display: none;
}
.submit:target .btn {
display: block;
}
.submit:not(:target) .spacer .status::before {
content: "You must read the submission guidelines above and indicate that you have read them before you can submit to this subreddit.";
}You then need to include a link to #newlink in the submission text box (in subreddit settings). For example:
**[Click here](#newlink)** to enable the submit button below.Clicking the link will cause the submit button to appear.
The main bug in the hack is that clicking the link causes the page to scroll up to the top, and the user has to scroll back down again to find the submit button. But other than that I'm pretty satisfied.
4
u/redstonehelper Jul 28 '15
We just hid our button somewhere on the page and made users read the guidelines to find out where we put it:
http://reddit.com/r/minecraft/submit
1
u/fdagpigj Jul 28 '15
But why does it work?