try track me click on forum.dobreprogramy.pl, remove redirect.
当前为
// ==UserScript==
// @name Do not track click link
// @description try track me click on forum.dobreprogramy.pl, remove redirect.
// @match https://forum.dobreprogramy.pl/
// @include https://forum.dobreprogramy.pl/*
// @icon https://i.imgur.com/aoGUAKi.png
// @homepageURL https://greasyfork.org/pl/scripts/37660-do-not-track-click-link
// @version 1.0.15
// @author krystian3w
// @run-at document-start
// @grant none
// @compatible firefox Firefox
// @compatible chrome Chrome
// @compatible edge Edge
// @compatible opera Opera
// @compatible safari Safari
// @namespace https://greasyfork.org/users/167625
// ==/UserScript==
(function() {
'use strict';
var body = document.getElementsByTagName("body")[0];
window.addEventListener("DOMContentLoaded", function() {
document.querySelectorAll('.regular.contents .cooked a[href*="//"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.regular.contents .cooked a[href^="/uploads/"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.excerpt a[href*="//"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.excerpt a[href^="/uploads/"]').forEach(function(link) {
link.classList.add('no-track-link');
});
});
//fallback
body.addEventListener("mouseover", function() {
document.querySelectorAll('.regular.contents .cooked a[href*="//"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.regular.contents .cooked a[href^="/uploads/"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.excerpt a[href*="//"]').forEach(function(link) {
link.classList.add('no-track-link');
});
document.querySelectorAll('.excerpt a[href^="/uploads/"]').forEach(function(link) {
link.classList.add('no-track-link');
});
});
})();