Obscuring elements based on user input
Aspects of the present disclosure involve a system for hiding conversation elements. The system accesses a conversation interface of a messaging application on a web browser and presents the conversation interface in a window associated with the web browser. The conversation interface comprising a plurality of conversation elements. The system determines that one or more inputs received from one or more input devices correspond to a specified combination of inputs. The system, in response to determining that the one or more inputs correspond to a specified combination of inputs, obscures a first subset of the plurality of conversation elements.
1 . A method comprising:
accessing a conversation interface of a messaging application on a web browser;
presenting the conversation interface in a window associated with the web browser, the conversation interface comprising a plurality of conversation elements of a conversation session;
storing a database that lists various types of combinations of user inputs with a restricted operation;
determining that one or more inputs received from one or more input devices correspond to a specified combination of inputs that is stored in the database;
determining that a device used to access the conversation interface corresponds to a specified type; and
in response to determining that the one or more inputs correspond to a specified combination of inputs corresponding to the restricted operation and in response to determining that the device used to access the conversation interface corresponds to the specified type:
obscuring a first subset of the plurality of conversation elements of the conversation session; and
modifying an opacity of a second subset of the plurality of conversation elements of the conversation session, the modifying the opacity of the second subset of the plurality of conversation elements of the conversation session comprising increasing or reducing the opacity of the second subset by a predetermined amount, the modified opacity of the second subset being different from an opacity of the first subset and causing the second subset to remain at least partially visible,
wherein the predetermined amount is 50% of the opacity of the second subset.
2 . The method of claim 1 , wherein the web browser is implemented on a desktop computer, comprising:
determining that the specified combination of inputs corresponds to placement of a cursor at a particular portion of a screen followed by a mouse click to select a screen capture option.
3 . The method of claim 1 , wherein the accessing comprises:
retrieving a universal resource locator (URL) of the messaging application;
downloading a markup language document corresponding to the messaging application;
processing the markup language document by the web browser to display the conversation interface; and
in response to processing the markup language document by the web browser to display the conversation interface, monitoring the one or more inputs to condition display of the first subset of the plurality of conversation elements and a manner at which information is displayed in the conversation interface.
4 . The method of claim 1 , wherein the one or more inputs comprise keystrokes performed using a keyboard associated with a client device on which the web browser is implemented.
5 . The method of claim 1 , wherein the one or more inputs comprise mouse clicks performed using a mouse associated with a client device on which the web browser is implemented.
6 . The method of claim 1 , wherein the one or more inputs comprise voice input captured by a microphone associated with a client device on which the web browser is implemented.
7 . The method of claim 1 , wherein the specified combination of inputs corresponds to a screenshot operation.
8 . The method of claim 1 , wherein the plurality of conversation elements include a chat region that includes one or more messages exchanged in a conversation, a chat input region for enabling a user to compose a message, a presence region that indicates an activity state of each of a plurality of friends, a friends region that lists the plurality of friends with whom the user has previously engaged in a conversation, and a phone call region for placing a phone call to a given friend.
9 . The method of claim 8 , wherein the first subset of the plurality of conversation elements includes the chat region and the presence region.
10 . The method of claim 8 , wherein the second subset of the conversation elements includes the chat input region.
11 . The method of claim 10 , wherein modifying the opacity of the second subset of the conversation elements comprises reducing an opacity of the chat input region by the predetermined amount.
12 . The method of claim 1 , wherein obscuring the first subset of the plurality of conversation elements comprises presenting an overlay on top of a chat region that includes one or more messages exchanged in a conversation, the overlay comprising a message indicating that a user attempted to capture a screenshot.
13 . The method of claim 12 , wherein the overlay comprises an avatar of the user.
14 . The method of claim 12 , further comprising:
after obscuring the first subset of the plurality of conversation elements, detecting an interaction with the conversation interface; and
revealing the first subset of the plurality of conversation elements in response to detecting the interaction with the conversation interface.
15 . A system comprising:
at least one hardware processor, coupled to a non-transitory machine-readable storage medium, configured to perform operations comprising:
accessing a conversation interface of a messaging application on a web browser;
presenting the conversation interface in a window associated with the web browser, the conversation interface comprising a plurality of conversation elements of a conversation session;
storing a database that lists various types of combinations of user inputs with a restricted operation;
determining that one or more inputs received from one or more input devices correspond to a specified combination of inputs that is stored in the database;
determining that a device used to access the conversation interface corresponds to a specified type;
in response to determining that the one or more inputs correspond to a specified combination of inputs corresponding to the restricted operation and in response to determining that the device used to access the conversation interface corresponds to the specified type:
obscuring a first subset of the plurality of conversation elements of the conversation session; and
modifying an opacity of a second subset of the plurality of conversation elements of the conversation session, the modifying the opacity of the second subset of the plurality of conversation elements of the conversation session comprising increasing or reducing the opacity of the second subset by a predetermined amount, the modified opacity of the second subset being different from an opacity of the first subset and causing the second subset to remain at least partially visible,
wherein the predetermined amount is 50% of the opacity of the second subset.
16 . The system of claim 15 , wherein the web browser is implemented on a desktop computer, comprising in response to processing a markup language document by the web browser to display the conversation interface, monitoring the one or more inputs to condition display of the first subset of the plurality of conversation elements and a manner at which information is displayed in the conversation interface.
17 . The system of claim 16 , wherein the accessing comprises:
retrieving a universal resource locator (URL) of the messaging application;
downloading a markup language document corresponding to the messaging application; and
processing the markup language document by the web browser to display the conversation interface.
18 . A non-transitory machine-readable storage medium that includes instructions that, when executed by one or more hardware processors of a machine, cause the machine to perform operations comprising:
accessing a conversation interface of a messaging application on a web browser;
presenting the conversation interface in a window associated with the web browser, the conversation interface comprising a plurality of conversation elements of a conversation session;
storing a database that lists various types of combinations of user inputs with a restricted operation;
determining that one or more inputs received from one or more input devices correspond to a specified combination of inputs that is stored in the database;
determining that a device used to access the conversation interface corresponds to a specified type; and
in response to determining that the one or more inputs correspond to a specified combination of inputs corresponding to the restricted operation and in response to determining that the device used to access the conversation interface corresponds to the specified type:
obscuring a first subset of the plurality of conversation elements of the conversation session; and
modifying an opacity of a second subset of the plurality of conversation elements of the conversation session, the modifying the opacity of the second subset of the plurality of conversation elements of the conversation session comprising increasing or reducing the opacity of the second subset by a predetermined amount, the modified opacity of the second subset being different from an opacity of the first subset and causing the second subset to remain at least partially visible,
wherein the predetermined amount is 50% of the opacity of the second subset.