Shows up to 200 search results at once on all pages! *Optional= Open (or not) search results on a new tab.
当前为
// ==UserScript==
// @name Google Search Enhancer
// @namespace SearchEnhancer
// @version 0.0.4
// @description Shows up to 200 search results at once on all pages! *Optional= Open (or not) search results on a new tab.
// @author hacker09
// @include *://www.google.*
// @exclude /^(https:\/\/www.google\.com\/)(finance|preferences|maps\?q=.*|flights\?q=.*|.*tbm=isch)(\/.*)?/
// @icon https://api.faviconkit.com/www.google.com/57
// @run-at document-start
// @grant GM_getValue
// @grant GM_setValue
// @noframes
// ==/UserScript==
(function() {
'use strict';
if (GM_getValue('Amount of results to Show') === undefined) //If the amount of results to show isn't defined
{ //Starts the if condition
GM_setValue('Amount of results to Show', 100); //Set the default amount of results to show as 100
GM_setValue('Open in new window?', 0); //Set the script to not open websites on a new tab
} //Finishes the if condition
if (location.href.match('&num=' + GM_getValue('Amount of results to Show') + '&newwindow=' + GM_getValue('Open in new window?')) === null) //If the current search doesn't have the user choices applied
{ //Starts the if condition
location.href = location.href += '&num=' + GM_getValue('Amount of results to Show') + '&newwindow=' + GM_getValue('Open in new window?'); //Redirect to add the user choices
} //Finishes the if condition
})();