Fix Google

Remove Google redirects and annoying result sections

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @namespace      http://havana.club/fixgoogle
// @version        2
// @name           Fix Google
// @name:en        Fix Google
// @description    Remove Google redirects and annoying result sections
// @description:en Remove Google redirects and annoying result sections
// @include        https://www.google.*/*
// @grant          none
// @require        https://code.jquery.com/jquery-3.3.1.min.js
// ==/UserScript==

(function($) {
  
    try
    {
        $('h3 a').removeAttr('onmousedown');
        $('h3 a').removeAttr('onclick');
        $('h3 a').removeAttr('oncontextmenu');

        $('h3 a').click( function (e) {
            e.stopImmediatePropagation();
            e.stopPropagation();
          } );
      
      	// add the complete URL under the title
      	$('h3 a').each( function() {
          	var $cite = $('<cite>').addClass('_Rm').text( $(this).attr('href') );
          	var $div = $('<div>').addClass('s').append($cite);
          	$(this).parent().after($div);
        });

	    // remove 'Top stories'
      	$('div[data-hveid="51"]').parent().remove();
      	$('div[data-hveid="52"]').parent().remove();

        // remove 'People also ask'
      	$('div[data-hveid="55"]').remove();
      	$('div[data-hveid="69"]').remove();
      
      	// remove map results
      	$('div[data-hveid="126"]').remove();
      	$('div[data-hveid="139"]').remove();
      
      	// remove Wikipédia results
      	$('div[data-hveid="724"]').remove();
      
      	// remove music results
      	$('div[data-hveid="763"]').remove();
      
    } catch (ex)
    {
      alert(ex);
    }
    
})(jQuery);