// ==UserScript== // @namespace mrob.com // @name blindposter for OTT // @description Hide the "TOPIC REVIEW" section, so you can make a blindpost without being spoiled by anything you might see there // @author Robert Munafo and Balthasar SzczepaƄski // @version 9924.26 // @downloadURL http://mrob.com/time/scripts-beta/blindposter.user.js.txt // @include http://forums.xkcd.com/posting.php* // @include http://fora.xkcd.com/posting.php* // @include http://echochamber.me/posting.php* // ==/UserScript== // REVISION HISTORY: // // np7936.14 First version // np7977.62 Add a prominent message saying 'Topic Review hidden by // blindposter script' to remind user they're using this script // np7979.02 Recognize and hide any 'ninja' posts // np7980.35 Do not hide my own post preview // np8001.35 Remove outdated comments // np8248.58 Do nothing unless we're posting to the OTT (t=101043) // np9748.14 Try to detect the page you get from hitting the quote button // (which stupidly does not contain 'f=101043') // np9924.26 Prevent previevninjas from appearing blindposter = { hideit: function(elem) { elem.style.display="none"; var container = elem.parentNode; var notice = document.createElement('div'); var text1 = document.createTextNode( "(Content hidden by blindposter script)"); notice.style.fontSize = '18.0px'; notice.style.fontStyle = 'italic'; notice.style.fontWeight = 'bold'; notice.style.color = '#0B7'; notice.appendChild(text1); container.insertBefore(notice, elem); }, convert: function() { var topicreview = document.getElementById("topicreview"); if (topicreview) { this.hideit(topicreview); }; /* Look for the preview of our own post, so we can avoid hiding it during the next bit. */ var preview = document.getElementById("preview"); /* If you 'Submit' a post and a new post has been submitted by someone else since the last time you did a 'Preview', it presents the message: "At least one new post has been made to this topic. You may wish to review your post in light of this." followed by one or more messages formatted the normal way in tags like
. So we hide those too. */ var i; var inners = document.getElementsByClassName('post bg1'); for(i=0 ; i