<commit_before>// ==UserScript==
// @name          Move Google Icons Back
// @description   Moves The Icons to other Google Services back to the main Page instead of the Menu
// @author        <NAME> <<EMAIL>>
// @version       0.1
// @namespace     http://mail.google.com
//
// @match       https://*.mail.google.com/*
//
// ==/UserScript==


(function(){
  ///////////////////////////////////////////////////////////////////////////
    var location = document.location;
    var body = document.body;
    var hostRegex = /mail\.google\.com/;

    var moveAndClone = function() {
        if (hostRegex.test(location.host)) {

          var isAlreadyAdded = function(parent, elem) {
              return Boolean(parent.compareDocumentPosition(elem) && window.Node.DOCUMENT_POSITION_CONTAINS);
          };

          var hideElement = function(cssQuery, elem) {
              var match = getElementByCSS(cssQuery, elem)[0];
              match.style.display = 'none';
          };

          var getElementByCSS = function(query, opt_elem) {
              return (opt_elem || document).querySelectorAll(query);
          };

          var elems = getElementByCSS('div[role=region] ul li');
          var relativeNode = document.getElementById('gb').parentNode;
          var fragment = document.createDocumentFragment();
          var container = document.getElementById('monetate_gmail_override');

          if (!container) {
              container = document.createElement('div');
              container.id = 'monetate_gmail_override';
              var style = 'width:40%; height:84px; margin-top:-10px; margin-left:30%;'+
                              'margin-right:30%; padding:0px; position:relative;'+
                              'white-space: no-wrap; bottom: -10px;';
              container.style.cssText = style;
              fragment.appendChild(container);
          }

          for (var i = 0, len = elems.length; i < 8; i++) {
              var elem = elems[i];
              var newElem = elem.cloneNode();
              hideElement('span:last-child', newElem);
              container.appendChild(newElem);
          }
          relativeNode.insertBefore(fragment);
      }
    };

  var test = function(){
    if((document.body && document.body.children && document.body.children.length > 14)){<commit_msg>gmailoverride-CssFix<commit_after>// ==UserScript==
// @name          Move Google Icons Back
// @description   Moves The Icons to other Google Services back to the main Page instead of the Menu
// @author        <NAME> <<EMAIL>>
// @version       0.1
// @namespace     http://mail.google.com
//
// @match       https://*.mail.google.com/*
//
// ==/UserScript==


(function(){
  ///////////////////////////////////////////////////////////////////////////
    var location = document.location;
    var body = document.body;
    var hostRegex = /mail\.google\.com/;

    var moveAndClone = function() {
        if (hostRegex.test(location.host)) {

          var isAlreadyAdded = function(parent, elem) {
              return Boolean(parent.compareDocumentPosition(elem) && window.Node.DOCUMENT_POSITION_CONTAINS);
          };

          var hideElement = function(cssQuery, elem) {
              var match = getElementByCSS(cssQuery, elem)[0];
              match.style.display = 'none';
          };

          var getElementByCSS = function(query, opt_elem) {
              return (opt_elem || document).querySelectorAll(query);
          };

          var elems = getElementByCSS('div[role=region] ul li');
          var relativeNode = document.getElementById('gb').parentNode;
          var fragment = document.createDocumentFragment();
          var container = document.getElementById('monetate_gmail_override');

          if (!container) {
              container = document.createElement('div');
              container.id = 'monetate_gmail_override';
              var style = 'width:40%; height:84px; margin-top:-10px; margin-left:auto;'+
                              'margin-right:auto; padding:0px; position:relative;'+
                              'white-space: no-wrap; bottom: -10px;';
              container.style.cssText = style;
              fragment.appendChild(container);
          }

          for (var i = 0, len = elems.length; i < 8; i++) {
              var elem = elems[i];
              var newElem = elem.cloneNode();
              hideElement('span:last-child', newElem);
              container.appendChild(newElem);
          }
          relativeNode.insertBefore(fragment);
      }
    };

  var test = function(){
    if((document.body && document.body.children && document.body.children.length > 14)){
{'fraction_non_alphanumeric': 0.1573538856775851, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 1.8662576687116565, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '738868', 'n_tokens_mistral': 1236, 'n_tokens_neox': 1197, 'n_words': 269}