Disable OpenSearch

Remove the OpenSearch <link> tag to prevent Google Chrome from auto-adding custom search engines.

目前为 2018-01-09 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name Disable OpenSearch
  3. // @namespace Disable OpenSearch
  4. // @version 1.0
  5. // @description Remove the OpenSearch <link> tag to prevent Google Chrome from auto-adding custom search engines.
  6. // @author Snie
  7. // @match http*://*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var elOpenSearch = document.querySelector('[type="application/opensearchdescription+xml"]');
  14. if (elOpenSearch) elOpenSearch.remove();
  15. })();