~vesto/greasemonkey

dd107d15b742bcf28e07dcda6190e0b528a0bac6 — Steve Gattuso 1 year, 3 months ago main
initial commit
2 files changed, 14 insertions(+), 0 deletions(-)

A linkedin.user.js
A whatsapp.user.js
A  => linkedin.user.js +9 -0
@@ 1,9 @@
// ==UserScript==
// @include https://www.linkedin.com/*
// ==/UserScript==
window.setInterval(() => {
  const feedEl = document.querySelector('[aria-label="Main Feed"]');
  if (feedEl) {
    feedEl.style.visibility = 'hidden';
  }
}, 1000);

A  => whatsapp.user.js +5 -0
@@ 1,5 @@
// ==UserScript==
// @include https://web.whatsapp.com/
// ==/UserScript==
if (document.body.innerText.replace(/\n/g, ' ').search(/whatsapp works with.*to use whatsapp.*update/i) !== -1)
	navigator.serviceWorker.getRegistration().then(function (r) { r.unregister(); document.location.reload() });