Remove AngularJS From Angular Search

This script simply removes "AngularJS" from google searches containing the word "Angular".

As of 2018-07-06. See the latest version.

  1. // ==UserScript==
  2. // @name Remove AngularJS From Angular Search
  3. // @description:en This script simply removes "AngularJS" from google searches containing the word "Angular".
  4. // @include /^https?://(?:www|encrypted|ipv[46])\.google\.[^/]+/(?:$|[#?]|search|webhp|imgres)/
  5. // @run-at document-start
  6. // @grant none
  7. // @version 0.0.1.20180706155432
  8. // @namespace https://greatest.deepsurf.us/users/194918
  9. // @description This script simply removes "AngularJS" from google searches containing the word "Angular".
  10. // ==/UserScript==
  11.  
  12. if (
  13. !location.href.toLowerCase().includes('angularjs') &&
  14. location.href.toLowerCase().includes('angular')
  15. ) {
  16. var newLocation = location.href.replace(/angular/i, 'Angular+-AngularJS');
  17. location.replace(newLocation);
  18. }