spm_Track_Block_Tool

移除链接中的spm跟踪参数

Version vom 14.05.2022. Aktuellste Version

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
shc0743
Bewertungen
0 0 0
Version
0.5.8
Erstellt am
09.04.2022
Letzte Aktualisierung
14.05.2022
Größe
13,1 KB
Lizenz
GPL-3.0
Wird angewandt auf

SPM Track Block Tool

此userscript从链接中移除 spm 参数,以减少无处不在的跟踪。

示例可在源代码中找到。

已知问题:

  • 只对链接和window.open有作用,对直接修改location.href的网页没用(后续可能会修复)
  • 首次安装有概率失效,可以尝试刷新几次页面或等一会


更新日志

[0.1] 通过更改location.href的方式移除spm (实际完全没用,因为spm已经被发送到服务器)所以这个版本没有发布
[0.2] 基本完成通过修改链接地址去除spm的功能,但无法移除弹出窗口中的spm.
[0.2.1] 修复了亿一些bug (例如非法url,无法处理hash等)
[0.2.2] 第一个发布版本,添加详细说明以及示例
[0.3.1] 此脚本也一并移除当前页面地址栏中的spm。
[0.3.2] 通过重新定义 window.open 实现移除弹出窗口中的spm参数。
[0.3.3] 用捕获模式addEventListener修复了0.3.2版本地址栏闪过spm的问题
[0.5.0] 添加更多关键词;改用关键词屏蔽;添加英语描述
[0.5.2] 添加针对域的关键词;修复一些bug
[0.5.3] 修复严重bug: 裁剪URL导致URL不断变短 请勿安装0.5.2版本!!
[0.5.4] 修改结构
[0.5.5] 更新arg列表;微调部分内容的执行顺序
[0.5.6] 修复1处小bug;添加更精确的匹配列表
[0.5.7] 去掉goldlog (Here);去掉setInterval;优化链接检测规则
[0.5.8] MutationObserver