Skip to content

Instantly share code, notes, and snippets.

@Harry260
Last active October 8, 2022 19:20
Show Gist options
  • Select an option

  • Save Harry260/c42042cd3b3bdc70ef9a382ff8a17b83 to your computer and use it in GitHub Desktop.

Select an option

Save Harry260/c42042cd3b3bdc70ef9a382ff8a17b83 to your computer and use it in GitHub Desktop.
Disable Delete, Clear Char, Delete Chat, All the Delete icons from whatsapp web!

Control Whatsapp Web Delete Feature

Disable Delete, Clear Char, Delete Chat, All the Delete icons from whatsapp web!

And that's it..

For further security, by preventing of tampermonkey uninstall.. follow the below steps

  • STEP 1 : Open Windows Registry Editor
  • STEP 2 : Go to the path Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
  • STEP 3 : Create new Key Google
  • STEP 4 : Create another key Chrome
  • STEP 5 : Again create a key! ExtensionInstallForcelist
  • STEP 6 : Now right-click and create a string value with name 1 or whatever
  • STEP 7 : Now rightclick it and select modify option and set the value to dhdgffkkebhmkfjojejmpbldmpobfkfo;https://clients2.google.com/service/update2/crx
  • STEP 8 : Relaunch Chrome
// ==UserScript==
// @name DeleteDog
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://web.whatsapp.com/
// @icon https://www.google.com/s2/favicons?sz=64&domain=whatsapp.com
// @grant none
// ==/UserScript==
(function () {
"use strict";
var style = document.createElement("style");
style.innerHTML = `
[aria-label="Delete message"],
[aria-label="Delete chat"],
[aria-label="Log out"] ,
[aria-label="Clear messages"],
[aria-label="Close chat"],
[aria-label="Delete"]
{
display: none !important;
}
`;
document.body.appendChild(style);
})();
// TESTED IN TAMPERMOKEY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment