egoz-master

Old Gmail Logo

Aug 3rd, 2021
1,235
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name          Old Gmail Logo
  3. // @author        Nhan Tran
  4. // @include       http://mail.google.com/*
  5. // @include       https://mail.google.com/*
  6. // @include       http://*.mail.google.com/*
  7. // @include       https://*.mail.google.com/*
  8. // @run-at        document-idle
  9. // @version       1.0
  10. // @require  http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
  11. // @require  https://gist.github.com/raw/2625891/waitForKeyElements.js
  12. // ==/UserScript==
  13.  
  14. waitForKeyElements("img.gb_tc", actionFunction);
  15. function actionFunction (jNode) {
  16.     jNode.css("width", "100px");
  17.     jNode.css("height", "60px");
  18.     jNode.attr("src", "https://oldgoogle.neocities.org/oldgmail-logo.png");
  19.     jNode.attr("srcset", "https://oldgoogle.neocities.org/oldgmail-logo.png");
  20. }
RAW Paste Data