WhatsApp Web Boss

Hides your whatsapp session at work

  1. // ==UserScript==
  2. // @name WhatsApp Web Boss
  3. // @name:de WhatsApp Web Boss
  4. // @namespace https://gf.qytechs.cn/en/users/8579-rarspace01
  5. // @version 0.2
  6. // @description Hides your whatsapp session at work
  7. // @description:de Versteckt die whatapp session auf der Arbeit
  8. // @author rarspace01
  9. // @match https://web.whatsapp.com/
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. /*!
  14. * Dynamically changing favicons with JavaScript
  15. * Works in all A-grade browsers except Safari and Internet Explorer
  16. * Demo: http://mathiasbynens.be/demo/dynamic-favicons
  17. */
  18.  
  19. // HTML5™, baby! http://mathiasbynens.be/notes/document-head
  20. document.head = document.head || document.getElementsByTagName('head')[0];
  21.  
  22. function changeFavicon(src) {
  23. var link = document.createElement('link'),
  24. oldLink = document.getElementById('dynamic-favicon');
  25. link.id = 'dynamic-favicon';
  26. link.rel = 'shortcut icon';
  27. link.href = src;
  28. if (oldLink) {
  29. document.head.removeChild(oldLink);
  30. }
  31. document.head.appendChild(link);
  32. }
  33.  
  34. //function to change favicon to stackoverflow and Tabtitle to a fitting title
  35. function doTheBossStuff() {
  36. changeFavicon('https://stackoverflow.com/favicon.ico');
  37. document.title = "How to send multiple attachments .xls files of different objects using apex";
  38. }
  39.  
  40. window.setInterval(function(){
  41. doTheBossStuff();
  42. }, 5000);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址