<commit_before>// ==UserScript==
// @name           Add Google site search
// @namespace      curipha
// @description    Add a site search form to all pages
// @include        http://*
// @include        https://*
// @exclude        https://*.google.tld/*
// @exclude        https://*.amazon.tld/*
// @version        0.2.2
// @grant          GM_addStyle
// @noframes
// ==/UserScript==

(function(){
  'use strict';

  if (document.contentType !== 'text/html') return;

  // "z-index" should be less than 255 because an indicator of Autopagerize is at 256.
  const css = `
#userjs-add_google {
  background: #ddd;
  padding: 10px;
  font: 18px sans-serif;
  line-height: 1;
  min-width: 200px;
  border: 2px solid #ccc;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 255;
}
#userjs-add_google form {
  margin: 0 !important;
  padding: 0 !important;
}
#userjs-add_google input {
  font: 18px monospace !important;<commit_msg>Use more large z-index to avoid obscured by page elements<commit_after>// ==UserScript==
// @name           Add Google site search
// @namespace      curipha
// @description    Add a site search form to all pages
// @include        http://*
// @include        https://*
// @exclude        https://*.google.tld/*
// @exclude        https://*.amazon.tld/*
// @version        0.2.2
// @grant          GM_addStyle
// @noframes
// ==/UserScript==

(function(){
  'use strict';

  if (document.contentType !== 'text/html') return;

  const css = `
#userjs-add_google {
  background: #ddd;
  padding: 10px;
  font: 18px sans-serif;
  line-height: 1;
  min-width: 200px;
  border: 2px solid #ccc;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2048;
}
#userjs-add_google form {
  margin: 0 !important;
  padding: 0 !important;
}
#userjs-add_google input {
  font: 18px monospace !important;
{'fraction_non_alphanumeric': 0.15473568281938327, 'fraction_numerical': 0.026982378854625552, 'mean_word_length': 2.4942307692307693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '1657676', 'n_tokens_mistral': 671, 'n_tokens_neox': 610, 'n_words': 180}