Twitter logo with speech bubble. Computer mouse pointer hovering over the speech bubble, with an "inspect element" prompt appearing in a menu box.

How To Make Fake Screenshots Using Browser Dev Tools

When humorous, embarassing or scandalous screenshots are posted on social media, many fail to investigate their authenticity before circulating them. While this often takes the form of harmless pranks and jokes, it can also provide a vehicle for more harmful forms of misinformation. This guide provides a basic overview of how some of these images can be created, exposing the dangers of accepting the legitimacy of screenshots at face value.

Nonetheless, screenshots are notoriously simple to fake. Observe:

Don Caldwell @DonCald I haven't bought deodorant since 1993. #HygeinelsAScam 12:04 PM - Mar 12, 2020 · Twitter Web App 1 Retweet 420 Tendies 69 420


Wow, Don! I had no idea!

There are a slew of methods for faking text, but on the web it couldn't be easier. While other methods exist, such as Photoshop or fake post generators, we'll be focusing on a more reliable technique used to fool gullible web users: your browser's Developer Tools, colloquially known as "Inspect Element." To demonstrate, we'll be using this tweet posted by Don from Know Your Meme.

Don Caldwell @DonCald Maybe the biggest Chungus was the friends we made along the way. 12:04 PM - Mar 12, 2020 · Twitter Web App 1 Retweet 11 Likes 27 1 11


Inspect Element and Browser Dev Tools


Online, many refer to a browser's web developer tools as "Inspect Element," as the tools are typically accessed by right-clicking an element on a page and clicking the "Inspect Element" menu option. This opens an interface allowing the user to highlight the selected element. In Chrome, Edge and Firefox, you can also open this menu by pressing F12, which may be quicker if you're looking to change more than just one element or your edits require additional support, such as JavaScript or mucking with networking.

Here's what it looks like, alongside Don's original tweet.

Performance RUIV Cidss= CsS-TUDJC4N > ><div class="css-1dbjc4n"></div> Elements Console Sources Network >> Tweet ><div class="css-1dbjc4n r-18u37iz r- døpm55" data-testid="tweet">-</div> Home Don Caldwell O V<div class="css-1dbjc4n"> @DonCald ><div dir="auto" class="css-901oao r- 4iw3lz r-1xk2f4g r-jwli3a r-1qd®xha r- # Explore Maybe the biggest Chungus was the friends we made along the a023e6 r-16dba41 r-109y4c4 r-ad9z0x r- bcgeeo r-ludh08x r-wwvug4 r-u8s1d r- 92ng3h r-qvutco">.</div> way. v<div class="css-1dbjc4n"> v<div class="css-1dbjc4n r-156q2ks"> 12:04 PM · Mar 12, 2020 · Twitter Web App Notifications v<div lang="en" dir="auto" class= "css-901oao r-jwli3a r-1qdexha r- 1 Retweet 11 Likes 1b6ydlw r-16dba41 r-ad9z®x r-bcgeeo r- O Messages bnwqim r-qvutc0"> <span class="css-901oao css- 11 16my406 r-1qdøxha r-ad9z0x r- bcgeeo r-qvutce">Maybe the biggest Chungus was the friends we made along the way.</span> == $0 A Bookmarks Tweet your reply </div> </div> Lists </div> <div class="css-1dbjc4n"></div> ><div class="css-1dbjc4n r-vpgt9t">. 8 Profile </div> > <div class="css-1dbjc4n">.</div> ><div aria-label="1 Retweet, 11 likes" role="group" class="css-1dbjc4n r-1oszu61 r-1kfrmmb r-1efd50x r-5kkj8d r-18u37iz r- ahmlil r-1wtjøep"></div> ► <div class="css-1dbjc4n r-18u37iz r- tjmcue r-1w5øu8g r-184en5c">-</div> More Tweet </div> </div>


Before creating the fake screenshot it's recommended to stop the page from continuing to load, as many websites have a background task running to fetch additional data and update the page, which may result in your hard work being overwritten by a page update. To prevent this, you can typically find an option to turn off additional networking requests. In Chrome, you can find this as a dropdown under Dev Tools (F12) > Network tab, where you can change the "Online" dropdown to "Offline."

Elements Console Sources Network Performance >> Y Q O Preserve log O Disable cache Online O Hide data URLS Disabled Filter Online All XHR JS CSS Img Media Font Doc WS Manifest Presets as blocked cookies Blocked Requests Fast 3G Slow 3G 20 ms 40 ms 60 ms 0 ms 100 ms Offline Custom Add.


This is normally used by devs to test how a web page will fare under abnormal network conditions, but here we're using it to avoid having the changes we make reverted.

Now, back to Inspect Element. The window that is opened is a modifiable version of the source HTML. Contrary to popular belief, this actually is not the HTML itself. It's actually a convenient representation of the browser's DOM which makes it far easier to edit. In the past, browsers didn't have dev tools, but instead only had a "view source" button, which simply displayed an immutable copy of the source HTML. Needless to say, faking web page results took a few extra steps back then.

Changing Text Using Inspect Element

Text on the web is, by far, the easiest part to change. As you may now be familiar (or already were), right-clicking on a web page gives you the option to "Inspect Element," at least on most modern browsers.

While the resulting "HTML" is simply a convenience tool, this convenient representation of the source HTML makes it a breeze to fake web text. The element itself, in the dev tool's text area, will typically be wrapped in a "tag," as shown below. Simply select the text between the tag and replace it. You're all done!

Tweet Don Caldwell O @DonCald Maybe the biggest Chungus was the friends we made along the way. 12:04 PM · Mar 12, 2020 · Twitter Web App 1 Retweet 11 Likes 11 Tweet your reply BEFORE <span class="css-901oao css- 16my406 r-1qd@xha r-ad9z@x r- bcqeeo r-qvutc0">Maybe the biggest Chungus was the friends we made along the way.</span> == S0 Tweet Don Caldwell O @DonCald I haven't bought deodorant since 1993. 12:04 PM · Mar 12, 2020 · Twitter Web App 1 Retweet 11 Likes 11 Tweet your reply AFTER <span class="css-901oao css- 16my406 r-1qdøxha r-ad9z®x r- bcqeeo r-qvutc0">I haven't bought deodorant since 1993.</span> $0


It's so easy, it's scary! Remember this next time you see a suspiciously-convincing screenshot.

Modifying Text Styling


This can be a little trickier, but is often very similar across social media platforms. On Twitter, different text elements will likely have different styling as well. For example, hashtags and profile tags have a blue styling, with the profile name in bold white text.

These differences in styling are applied using CSS, a simple language which provides colors, sizing and positioning modifications to HTML elements. CSS styles are organized into "classes," which are a collection of CSS styling rules which can be reused across any number of elements.

On most platforms, you don't really need to bother writing your own CSS or painstakingly selecting the correct class to apply; just find an element with the desired styling, copy the entire contents of the "class" property on the desired element (such as a hashtag) and paste this as the "class" property on the target tag.

Tweet a.css-4rbku5.css-18t94o4.css-901 238.92 × 26 Salesforce oao.css-16my406.r-1n1174f.r-1lo qt21.r-1qd0xha.r-. salesforce @salesforce LIVE on #LeadingThroughChange CEO, @SBGroup, and Gavin Patterson, President & Chief Revenue We're with Sim Tshabalala, Officer, Salesforce. Tune in now: <span class="r-18u37iz"> ▼<a href="/hashtag/ LeadingThroughChange? St src=hashtag_ click" dir="ltr" Copy this Thd role="link" data-focusable= ING UGH IGE "true" class="css-4rbku5 css- 18t9404 css-901oao css-16my406 r-1n1174f r-1loqt21 r-1qdØxha r- ad9z0x r-bcqeeo r-qvutce" $0 33 42:32 3. "#LeadingThroughChange" <span dir="auto" class="css- 901oao css-16my406 r-4qtqp9 r- Salesforc Leading ip8ujx r-9cvigr r-zw8f10 r- bnwqim r-h9hxbl">..</span> 12:57 PM · A Promote </a> </span> O Quole Tweets 54 Retweets O24 LIKES


Simply "copy" the styling from the source (in this case, a hashtag) and paste it onto the "class" property of the text you want to convert to a hashtag.

Don Caldwell @DonCald I haven't bought deodorant since 1993. #HygeinelsAScam 12:04 PM · Mar 12, 2020 · Twitter Web App 1 Retweet 11 Likes 27 1 11 Tweet your reply Paste here! <span class="css-4rbku5 css- 18t9404 css-901oao css-16my406 r- 1n1174f r-1loqt21 r-1qd0xha r- ad9z0x r-bcqeeo r-qvutc®"> #HygeineIsAScam</span> == $0


Note: If you need to add this styling in-line, you'll need to give the desired text its own element. The simplest way to do this is to duplicate the text block into three "span" blocks: one for the prior text and one for the following text, with the styled block in the middle.

Changing an Image


Changing an image varies wildly by platform, but in a simple case, selecting the image element and replacing the "src" or "srcset" attribute with a URL pointing to an alternative image will work. Easy!

In this example, we locate the "srcset" attribute of the Instagram image:

Instagram Q Search #music img.FFVAD 614 × 767.5 <img alt="Photo shared by billie eilish fanpage on September 06, 2020 tagging @billieeilish, and @billiebrazilian. Image may contain: 1 person, closeup." class="FFVAD" decoding="auto" sizes= "614px" srcset="https://scontent-iad3- 1.cdninstagram.com/v/t51.2885- 13,793 15/sh0.08/e35/p640x640/118796118_45636304 17011175_5636117875852095542_n.jpg? _nc_ht=scontent-iad3- 1.cdninstagram.com&_nc_cat=103&_nc_ohc=tw FJJGWOOZ4AX_Yb8vb&oh=f1df5cd8907bedf87b43 3076c670640e&oe=5F81891F 640w, https://scontent-iad3- 1.cdninstagram.com/v/t51.2885-

And replace it with our own, more tasteful image.

Instagram Q Search #music belleillish <img alt="Photo shared by billie eilish fanpage on September 06, 2020 tagging @billieeilish, and @billiebrazilian. Image may contain: 1 person, closeup." 13.7 class="FFVAD" decoding="auto" sizes= "614px" srcset="https://i.kym-cdn.com/ photos/images/original/001/207/210/ b22.jpg"

However, many sites (such as Twitter) have strict content policy directives which make this far more difficult. Replacing an image is certainly possible on sites with strict directives such as this, but solutions are often platform-specific and beyond the scope of this guide; just know that it is, indeed, possible, and that if all else fails, Photoshop will do.

This guide has only scratched the surface of the capabilities we have at our disposal for "doctoring" web pages, right from the comfort of our own browser! When confronted with a screenshot, your best bet is to remain skeptical about its authenticity until you are able to verify the corresponding post itself.



Meme Insider is a Know Your Meme publication and the world's leading internet trends and culture magazine. Find out how to get your first print copy for free, and check out the Meme Insider website for more info.



Top Comments

Gone
Gone

I remember discussing in a class how we might be living in a new Dark Age. We have more information available than ever before, but it's getting harder and harder to tell how much of it is real and how much of it is faked either by people pushing an agenda or trolls who just want to burn everything.

+8

+ Add a Comment

Comments (10)


Display Comments

Add a Comment


Hi! You must login or signup first!