24

If I want to share a screenshot of a non-deleted post on Stack Overflow but, for some reason, don't want to disclose in the screenshot my personal voting choice (while still keeping the score information), I can use a private browsing window to display the post without being logged in.

However, I cannot do this for a deleted post (or a post on a private Team) because they cannot be viewed by an anonymous user.

How can I generically make a screenshot of any post without disclosing my personal voting choice and without changing the displayed score (which would be the result if I retracted my vote, took the screenshot, and then restored my vote—if that would even be possible, due to vote locking).

7
  • 30
    A change so small doesn't even deserve a user-script. Just "inspect" the voting button and remove the vote-down-on class.
    – yivi
    Oct 21, 2018 at 6:09
  • 8
    But then people will think you didn't vote, and this could be resented as well. Oct 21, 2018 at 19:48
  • 7
    @Jean Do not tell anyone of this... but in theory you could subvert these sophisticated hacking techniques to doctor the screenshot and make it look as if you had actually upvoted the question!
    – yivi
    Oct 22, 2018 at 6:02
  • 7
    @yivi you mean MSPaint => fill the triangle with the proper color? :p Oct 22, 2018 at 6:25
  • @Jean-FrançoisFabre no, just the vote-up-on class.
    – Braiam
    Oct 22, 2018 at 11:15
  • 8
    @Jean-FrançoisFabre The best way is to highlight both the upvote and the downvote button! Everyone will understand that that is not correct.
    – user202729
    Oct 22, 2018 at 14:27
  • 3
    @user202729 I don't know what you're talking about :) Oct 23, 2018 at 7:47

2 Answers 2

52

Open up your browser's JavaScript console and execute this:

$('.js-vote-down-btn, .js-vote-up-btn').removeClass('fc-theme-primary');

This should remove all the "voted on" styles from the page, so you can take a screenshot without revealing your voting preferences.

If you want to remove your favourite preference as well,

$('.js-favorite-btn').removeClass('fc-yellow-600');

These work on both public Q&A as well as private teams as they use the same CSS classes.

5
  • 11
    If you want to redact the page instead, I have a userscript which removes the above and masks the users' display names RedactedScreenshots
    – Samuel Liew Mod
    Oct 21, 2018 at 11:21
  • 5
    @SamuelLiew I just want to make a point to commend your efforts to making the mod tools a better place for everyone. Looking at the work you've put in, I can see that you were a good choice for the mod team.
    – Blue
    Oct 22, 2018 at 6:00
  • @LightnessRacesinOrbit some historical info: Why are lookbehind assertions not supported in Javascript?. Anyway I've gone ahead and removed it from the userscript.
    – Samuel Liew Mod
    Oct 23, 2018 at 22:20
  • @SamuelLiew Aha, ES2018! That explains it. Thanks Oct 24, 2018 at 9:22
  • 1
    This seems like a rare instance that this question could have been on topic for both meta & main. Nov 30, 2018 at 17:09
0

Quickest way on Windows:

  1. Prt
    Scrn
  2. ⊞ Win+R
  3. pbrush, Enter
  4. Crop
  5. Scribble over the voting widget with a nice fat red paintbrush
  6. Ctrl+S
  7. screenshot.png, Enter
6
  • Honestly this is the way I'd go if possible, although I'd probably draw a filled rectangle instead, because it makes the redaction of my voting choice open and above board, not via stealth. Oct 23, 2018 at 15:56
  • @DanNeely A big messy blob of red digital paint is not stealth, but the filled rectangle is probably easier now you mention it (if anything I'd find a neat shape to be closer to "stealth" tbh) Oct 23, 2018 at 15:57
  • To be clearer, I meant that editing an image was the non-stealth way to do it. Fiddling with the web page using debug tools as in @yivi 's answer would be doing it via stealth. Oct 23, 2018 at 16:54
  • @DanNeely Ah :) Oct 23, 2018 at 16:57
  • 1
    How is this "Quickest"?
    – erikvimz
    Oct 23, 2018 at 20:10
  • 1
    @Eric By virtue of the fact that it takes the least time to do. Unless you're really slow with MS Paint. Oct 23, 2018 at 20:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .