Remove Text Fragment

Remove Text Fragment from Google search result URLs

目前為 2021-08-20 提交的版本,檢視 最新版本

// ==UserScript==
// @name            Remove Text Fragment
// @namespace       https://gf.qytechs.cn/users/783910
// @name:ja         Text Fragmentの削除
// @version         0.2
// @description     Remove Text Fragment from Google search result URLs
// @description:ja  Google検索結果のURLからText Fragmentを削除する
// @author          ysnr777
// @match           https://www.google.com/search?*
// @grant           none
// ==/UserScript==

(function() {
  'use strict';
  for (const el of document.querySelectorAll("a[href*=':~:']")) {
    el.href = el.href.replace(/#:~:[^"]*/, '');
  }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址