Skip to content

Instantly share code, notes, and snippets.

@kevinfiol
Last active August 30, 2023 02:04
Show Gist options
  • Save kevinfiol/7a96630827e41bb936c0e00e54d605c3 to your computer and use it in GitHub Desktop.
Save kevinfiol/7a96630827e41bb936c0e00e54d605c3 to your computer and use it in GitHub Desktop.
forcing HTML google

Add this uBlock Origin filter:

||google.com/search$csp=script-src 'none'

On Windows, I had to set this as the custom search URL:

https://www.google.com/search?q=%s&gbv=1&sei=1

Use this userscript:

// ==UserScript==
// @name        Google Search - interpret noscript tag
// @namespace   Violentmonkey Scripts
// @run-at      document-end
// @match       https://www.google.com/search
// @grant       none
// @version     1.0
// @author      -
// @description 8/22/2023, 11:13:53 PM
// ==/UserScript==
let noscript = document.querySelector('noscript');

if (noscript) {
  console.log(noscript.innerHTML);
  document.head.innerHTML += noscript.innerHTML;
  console.log('SUCCESS: was able to load noscript');
} else {
  console.log('FAIL: was not able to load noscript');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment