您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Use original links instead of "ad.doubleclick.net" links in the Google Search means a little less tracking!
当前为
- // ==UserScript==
- // @name Remove doubleclick tracking
- // @description Use original links instead of "ad.doubleclick.net" links in the Google Search means a little less tracking!
- // @namespace Violentmonkey Scripts
- // @match https://www.google.com/search
- // @grant none
- // @version 0.0.1.20190521130657
- // ==/UserScript==
- var oldOnload = window.onload;
- window.onload = function () {
- if (typeof oldOnload == 'function') {
- oldOnload();
- }
- var adClickElements = document.getElementsByClassName('pla-unit-container');
- var text = '';
- var i;
- text += 'Items to fix: ';
- text += adClickElements.length - 1;
- text += '\n'
- for (i = 0; i < adClickElements.length - 1; i++) {
- text += 'URL \'' + adClickElements[i].removeChild(adClickElements[i].childNodes[0]) + '\' removed. \n';
- }
- text += 'Done, enjoy Google Search with a little less tracking! :-)';
- console.log(text);
- }