🏠 Home 

Greasy Fork is available in English.

Faster Google Search

Skip Google redirect links in search r###lts


安装此脚本?
// ==UserScript==
// @name         Faster Google Search
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Skip Google redirect links in search r###lts
// @author       sharmanhall
// @match        https://www.google.com/search*
// @grant        none
// @license MIT
// ==/UserScript==
(function() {
const removeRedirects = () => {
document.querySelectorAll('a').forEach(link => {
const url = link.getAttribute('href');
if (url && url.startsWith('/url?q=')) {
const realURL = new URLSearchParams(url.split('?')[1]).get('q');
if (realURL) link.setAttribute('href', realURL);
}
});
};
new MutationObserver(removeRedirects).observe(document.body, { childList: true, subtree: true });
removeRedirects();
})();