google-groups-translation-message-hider

Hides the disturbing yellow boxes saying 'Translate message to English' in Google Groups.

  1. // ==UserScript==
  2. // @name google-groups-translation-message-hider
  3. // @description Hides the disturbing yellow boxes saying 'Translate message to English' in Google Groups.
  4. // @author Caglar Toklu
  5. // @copyright 2016, Caglar Toklu
  6. // @date 2016-04-12
  7. // @grant GM_addStyle
  8. // @homepageURL https://github.com/caglartoklu/google-groups-translation-message-hider.user.js
  9. // @include http://groups.google.com/*
  10. // @include https://groups.google.com/*
  11. // @license BSD 2-Clause
  12. // @namespace https://github.com/caglartoklu/greasemonkey
  13. // @run-at document-end
  14. // @version 1.0.0
  15. // ==/UserScript==
  16.  
  17. // This script is forked from:
  18. // http://userscripts-mirror.org/scripts/show/149411
  19. // The code of that script was perfectly correct, but it was not granted for:
  20. // GM_addStyle http://wiki.greasespot.net/GM_addStyle
  21. // It was possibly written before Greasemonkey 2.0 since
  22. // from Greasemonkey 2.0, `@grant none` is assumed by default,
  23. // if no other values are specified.
  24. // http://wiki.greasespot.net/@grant
  25. // google-groups-translation-message-hider adds the necessary metadata.
  26.  
  27. (function () {
  28.  
  29. GM_addStyle('.gux-confirm-panel-c { display:none !important; }');
  30.  
  31. }());