ballerburg9005 / Google Update Location

// ==UserScript==
// @name        Google Update Location
// @description Simply clicks "Update Location" at the bottom, useful in combination with fake location (warning: does not bypass actual censorship for your region).
// @include       http*://*google.*/*
// @run-at      document-start
// @license MIT
// @author Ballerburg9005
// ==/UserScript==

new MutationObserver(function(_,self) {
  			core:
        for (let ele of document.getElementsByTagName("update-location")) {
          for (let el of ele.parentElement.getElementsByTagName("span")) {
          	if(el.innerHTML.match(/<span>[^>]*IP[^>]*<\/span>/) !== null)
            {
				ele.click();
            	break core;
            }
          }
        }
}).observe(document, {childList:true, subtree:true});