Added yandex link fixer + renewed copyright notice

#305
This commit is contained in:
Kevin Röbert 2020-01-06 17:14:34 +01:00
parent 50542fa6a3
commit 0417469a26
28 changed files with 305 additions and 130 deletions

View File

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Added hyperlink auditing blocking [#184](https://gitlab.com/KevinRoebert/ClearUrls/issues/184)
- Added yandex link fix script, to avoid URL tracking [#305](https://gitlab.com/KevinRoebert/ClearUrls/issues/305)
### Compatibility note
- Require Firefox >= 55

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -0,0 +1,61 @@
/*
* ClearURLs
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
(function (window) {
"use strict";
function injectFunction() {
let ele = document.createElement('script');
let s = document.getElementsByTagName('script')[0];
ele.type = 'text/javascript';
ele.textContent = "Object.defineProperty(window, '_borschik', {" +
" value: function() { return false; }," +
" writable: false," +
" configurable: false" +
"});";
s.parentNode.insertBefore(ele, s);
}
/*
* The main entry
*/
function main()
{
injectFunction();
document.addEventListener('mouseover', function (event) {
let a = event.target, depth = 1;
while (a && a.tagName !== 'A' && depth-- > 0) {
a = a.parentNode;
}
if (a && a.tagName === 'A') {
try {
a.removeAttribute('data-counter');
delete a.dataset.cthref;
} catch(e) {
console.log(e);
}
}
}, true);
}
main();
})(window);

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
ClearURLs
Copyright (c) 2017-2019 Kevin Röbert
Copyright (c) 2017-2020 Kevin Röbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
ClearURLs
Copyright (c) 2017-2019 Kevin Röbert
Copyright (c) 2017-2020 Kevin Röbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
ClearURLs
Copyright (c) 2017-2019 Kevin Röbert
Copyright (c) 2017-2020 Kevin Röbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
ClearURLs
Copyright (c) 2017-2019 Kevin Röbert
Copyright (c) 2017-2020 Kevin Röbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by

View File

@ -1,6 +1,6 @@
<!--
ClearURLs
Copyright (c) 2017-2019 Kevin Röbert
Copyright (c) 2017-2020 Kevin Röbert
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by

View File

@ -8,7 +8,7 @@
"default_locale": "en",
"applications": {
"gecko": {
"id": "{74145f27-f039-47ce-a470-a662b129930a}"
"id": "{74145f27-f039-47ce-a470-a662b129930a}"
}
},
"icons": {
@ -73,115 +73,228 @@
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"matches": [
"<all_urls>"
],
"js": [
"browser-polyfill.js"
]
},
{
"all_frames": true,
"matches": ["*://*.google.com/*", "*://*.google.ad/*",
"*://*.google.ae/*", "*://*.google.com.af/*",
"*://*.google.com.ag/*", "*://*.google.com.ai/*",
"*://*.google.al/*", "*://*.google.am/*",
"*://*.google.co.ao/*", "*://*.google.com.ar/*",
"*://*.google.as/*", "*://*.google.at/*",
"*://*.google.com.au/*", "*://*.google.az/*",
"*://*.google.ba/*", "*://*.google.com.bd/*",
"*://*.google.be/*", "*://*.google.bf/*",
"*://*.google.bg/*", "*://*.google.com.bh/*",
"*://*.google.bi/*", "*://*.google.bj/*",
"*://*.google.com.bn/*", "*://*.google.com.bo/*",
"*://*.google.com.br/*", "*://*.google.bs/*",
"*://*.google.bt/*", "*://*.google.co.bw/*",
"*://*.google.by/*", "*://*.google.com.bz/*",
"*://*.google.ca/*", "*://*.google.cd/*",
"*://*.google.cf/*", "*://*.google.cg/*",
"*://*.google.ch/*", "*://*.google.ci/*",
"*://*.google.co.ck/*", "*://*.google.cl/*",
"*://*.google.cm/*", "*://*.google.cn/*",
"*://*.google.com.co/*", "*://*.google.co.cr/*",
"*://*.google.com.cu/*", "*://*.google.cv/*",
"*://*.google.com.cy/*", "*://*.google.cz/*",
"*://*.google.de/*", "*://*.google.dj/*",
"*://*.google.dk/*", "*://*.google.dm/*",
"*://*.google.com.do/*", "*://*.google.dz/*",
"*://*.google.com.ec/*", "*://*.google.ee/*",
"*://*.google.com.eg/*", "*://*.google.es/*",
"*://*.google.com.et/*", "*://*.google.fi/*",
"*://*.google.com.fj/*", "*://*.google.fm/*",
"*://*.google.fr/*", "*://*.google.ga/*",
"*://*.google.ge/*", "*://*.google.gg/*",
"*://*.google.com.gh/*", "*://*.google.com.gi/*",
"*://*.google.gl/*", "*://*.google.gm/*",
"*://*.google.gp/*", "*://*.google.gr/*",
"*://*.google.com.gt/*", "*://*.google.gy/*",
"*://*.google.com.hk/*", "*://*.google.hn/*",
"*://*.google.hr/*", "*://*.google.ht/*",
"*://*.google.hu/*", "*://*.google.co.id/*",
"*://*.google.ie/*", "*://*.google.co.il/*",
"*://*.google.im/*", "*://*.google.co.in/*",
"*://*.google.iq/*", "*://*.google.is/*", "*://*.google.it/*",
"*://*.google.je/*", "*://*.google.com.jm/*",
"*://*.google.jo/*", "*://*.google.co.jp/*",
"*://*.google.co.ke/*", "*://*.google.com.kh/*",
"*://*.google.ki/*", "*://*.google.kg/*",
"*://*.google.co.kr/*", "*://*.google.com.kw/*",
"*://*.google.kz/*", "*://*.google.la/*",
"*://*.google.com.lb/*", "*://*.google.li/*",
"*://*.google.lk/*", "*://*.google.co.ls/*",
"*://*.google.lt/*", "*://*.google.lu/*", "*://*.google.lv/*",
"*://*.google.com.ly/*", "*://*.google.co.ma/*",
"*://*.google.md/*", "*://*.google.me/*", "*://*.google.mg/*",
"*://*.google.mk/*", "*://*.google.ml/*",
"*://*.google.com.mm/*", "*://*.google.mn/*",
"*://*.google.ms/*", "*://*.google.com.mt/*",
"*://*.google.mu/*", "*://*.google.mv/*", "*://*.google.mw/*",
"*://*.google.com.mx/*", "*://*.google.com.my/*",
"*://*.google.co.mz/*", "*://*.google.com.na/*",
"*://*.google.com.nf/*", "*://*.google.com.ng/*",
"*://*.google.com.ni/*", "*://*.google.ne/*",
"*://*.google.nl/*", "*://*.google.no/*",
"*://*.google.com.np/*", "*://*.google.nr/*",
"*://*.google.nu/*", "*://*.google.co.nz/*",
"*://*.google.com.om/*", "*://*.google.com.pa/*",
"*://*.google.com.pe/*", "*://*.google.com.pg/*",
"*://*.google.com.ph/*", "*://*.google.com.pk/*",
"*://*.google.pl/*", "*://*.google.pn/*",
"*://*.google.com.pr/*", "*://*.google.ps/*",
"*://*.google.pt/*", "*://*.google.com.py/*",
"*://*.google.com.qa/*", "*://*.google.ro/*",
"*://*.google.ru/*", "*://*.google.rw/*",
"*://*.google.com.sa/*", "*://*.google.com.sb/*",
"*://*.google.sc/*", "*://*.google.se/*",
"*://*.google.com.sg/*", "*://*.google.sh/*",
"*://*.google.si/*", "*://*.google.sk/*",
"*://*.google.com.sl/*", "*://*.google.sn/*",
"*://*.google.so/*", "*://*.google.sm/*",
"*://*.google.sr/*", "*://*.google.st/*",
"*://*.google.com.sv/*", "*://*.google.td/*",
"*://*.google.tg/*", "*://*.google.co.th/*",
"*://*.google.com.tj/*", "*://*.google.tk/*",
"*://*.google.tl/*", "*://*.google.tm/*",
"*://*.google.tn/*", "*://*.google.to/*",
"*://*.google.com.tr/*", "*://*.google.tt/*",
"*://*.google.com.tw/*", "*://*.google.co.tz/*",
"*://*.google.com.ua/*", "*://*.google.co.ug/*",
"*://*.google.co.uk/*", "*://*.google.com.uy/*",
"*://*.google.co.uz/*", "*://*.google.com.vc/*",
"*://*.google.co.ve/*", "*://*.google.vg/*",
"*://*.google.co.vi/*", "*://*.google.com.vn/*",
"*://*.google.vu/*", "*://*.google.ws/*",
"*://*.google.rs/*", "*://*.google.co.za/*",
"*://*.google.co.zm/*", "*://*.google.co.zw/*",
"*://*.google.cat/*"],
"js": [
"core_js/google_link_fix.js"
],
"run_at": "document_end"
}
],
"options_ui": {
"page": "html/settings.html"
"matches": [
"*://*.google.com/*",
"*://*.google.ad/*",
"*://*.google.ae/*",
"*://*.google.com.af/*",
"*://*.google.com.ag/*",
"*://*.google.com.ai/*",
"*://*.google.al/*",
"*://*.google.am/*",
"*://*.google.co.ao/*",
"*://*.google.com.ar/*",
"*://*.google.as/*",
"*://*.google.at/*",
"*://*.google.com.au/*",
"*://*.google.az/*",
"*://*.google.ba/*",
"*://*.google.com.bd/*",
"*://*.google.be/*",
"*://*.google.bf/*",
"*://*.google.bg/*",
"*://*.google.com.bh/*",
"*://*.google.bi/*",
"*://*.google.bj/*",
"*://*.google.com.bn/*",
"*://*.google.com.bo/*",
"*://*.google.com.br/*",
"*://*.google.bs/*",
"*://*.google.bt/*",
"*://*.google.co.bw/*",
"*://*.google.by/*",
"*://*.google.com.bz/*",
"*://*.google.ca/*",
"*://*.google.cd/*",
"*://*.google.cf/*",
"*://*.google.cg/*",
"*://*.google.ch/*",
"*://*.google.ci/*",
"*://*.google.co.ck/*",
"*://*.google.cl/*",
"*://*.google.cm/*",
"*://*.google.cn/*",
"*://*.google.com.co/*",
"*://*.google.co.cr/*",
"*://*.google.com.cu/*",
"*://*.google.cv/*",
"*://*.google.com.cy/*",
"*://*.google.cz/*",
"*://*.google.de/*",
"*://*.google.dj/*",
"*://*.google.dk/*",
"*://*.google.dm/*",
"*://*.google.com.do/*",
"*://*.google.dz/*",
"*://*.google.com.ec/*",
"*://*.google.ee/*",
"*://*.google.com.eg/*",
"*://*.google.es/*",
"*://*.google.com.et/*",
"*://*.google.fi/*",
"*://*.google.com.fj/*",
"*://*.google.fm/*",
"*://*.google.fr/*",
"*://*.google.ga/*",
"*://*.google.ge/*",
"*://*.google.gg/*",
"*://*.google.com.gh/*",
"*://*.google.com.gi/*",
"*://*.google.gl/*",
"*://*.google.gm/*",
"*://*.google.gp/*",
"*://*.google.gr/*",
"*://*.google.com.gt/*",
"*://*.google.gy/*",
"*://*.google.com.hk/*",
"*://*.google.hn/*",
"*://*.google.hr/*",
"*://*.google.ht/*",
"*://*.google.hu/*",
"*://*.google.co.id/*",
"*://*.google.ie/*",
"*://*.google.co.il/*",
"*://*.google.im/*",
"*://*.google.co.in/*",
"*://*.google.iq/*",
"*://*.google.is/*",
"*://*.google.it/*",
"*://*.google.je/*",
"*://*.google.com.jm/*",
"*://*.google.jo/*",
"*://*.google.co.jp/*",
"*://*.google.co.ke/*",
"*://*.google.com.kh/*",
"*://*.google.ki/*",
"*://*.google.kg/*",
"*://*.google.co.kr/*",
"*://*.google.com.kw/*",
"*://*.google.kz/*",
"*://*.google.la/*",
"*://*.google.com.lb/*",
"*://*.google.li/*",
"*://*.google.lk/*",
"*://*.google.co.ls/*",
"*://*.google.lt/*",
"*://*.google.lu/*",
"*://*.google.lv/*",
"*://*.google.com.ly/*",
"*://*.google.co.ma/*",
"*://*.google.md/*",
"*://*.google.me/*",
"*://*.google.mg/*",
"*://*.google.mk/*",
"*://*.google.ml/*",
"*://*.google.com.mm/*",
"*://*.google.mn/*",
"*://*.google.ms/*",
"*://*.google.com.mt/*",
"*://*.google.mu/*",
"*://*.google.mv/*",
"*://*.google.mw/*",
"*://*.google.com.mx/*",
"*://*.google.com.my/*",
"*://*.google.co.mz/*",
"*://*.google.com.na/*",
"*://*.google.com.nf/*",
"*://*.google.com.ng/*",
"*://*.google.com.ni/*",
"*://*.google.ne/*",
"*://*.google.nl/*",
"*://*.google.no/*",
"*://*.google.com.np/*",
"*://*.google.nr/*",
"*://*.google.nu/*",
"*://*.google.co.nz/*",
"*://*.google.com.om/*",
"*://*.google.com.pa/*",
"*://*.google.com.pe/*",
"*://*.google.com.pg/*",
"*://*.google.com.ph/*",
"*://*.google.com.pk/*",
"*://*.google.pl/*",
"*://*.google.pn/*",
"*://*.google.com.pr/*",
"*://*.google.ps/*",
"*://*.google.pt/*",
"*://*.google.com.py/*",
"*://*.google.com.qa/*",
"*://*.google.ro/*",
"*://*.google.ru/*",
"*://*.google.rw/*",
"*://*.google.com.sa/*",
"*://*.google.com.sb/*",
"*://*.google.sc/*",
"*://*.google.se/*",
"*://*.google.com.sg/*",
"*://*.google.sh/*",
"*://*.google.si/*",
"*://*.google.sk/*",
"*://*.google.com.sl/*",
"*://*.google.sn/*",
"*://*.google.so/*",
"*://*.google.sm/*",
"*://*.google.sr/*",
"*://*.google.st/*",
"*://*.google.com.sv/*",
"*://*.google.td/*",
"*://*.google.tg/*",
"*://*.google.co.th/*",
"*://*.google.com.tj/*",
"*://*.google.tk/*",
"*://*.google.tl/*",
"*://*.google.tm/*",
"*://*.google.tn/*",
"*://*.google.to/*",
"*://*.google.com.tr/*",
"*://*.google.tt/*",
"*://*.google.com.tw/*",
"*://*.google.co.tz/*",
"*://*.google.com.ua/*",
"*://*.google.co.ug/*",
"*://*.google.co.uk/*",
"*://*.google.com.uy/*",
"*://*.google.co.uz/*",
"*://*.google.com.vc/*",
"*://*.google.co.ve/*",
"*://*.google.vg/*",
"*://*.google.co.vi/*",
"*://*.google.com.vn/*",
"*://*.google.vu/*",
"*://*.google.ws/*",
"*://*.google.rs/*",
"*://*.google.co.za/*",
"*://*.google.co.zm/*",
"*://*.google.co.zw/*",
"*://*.google.cat/*"
],
"js": [
"core_js/google_link_fix.js"
],
"run_at": "document_end"
},
{
"all_frames": true,
"matches": [
"*://*.yandex.ru/*",
"*://*.yandex.com/*"
],
"js": [
"core_js/yandex_link_fix.js"
],
"run_at": "document_end"
}
],
"options_ui": {
"page": "html/settings.html"
}
}

View File

@ -1,7 +1,7 @@
<?php
/*
* ClearURLs
* Copyright (c) 2017-2019 Kevin Röbert
* Copyright (c) 2017-2020 Kevin Röbert
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by