parent
1367284767
commit
191fcfce23
11
CHANGELOG.md
11
CHANGELOG.md
|
@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.8.5] - 2019-09-29
|
||||||
|
|
||||||
|
### Compatibility note
|
||||||
|
- Require Firefox >= 55
|
||||||
|
- Require Chrome >= 22
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fixed [#264](https://gitlab.com/KevinRoebert/ClearUrls/issues/264)
|
||||||
|
- Fixed [#262](https://gitlab.com/KevinRoebert/ClearUrls/issues/262)
|
||||||
|
- Fixed [#267](https://gitlab.com/KevinRoebert/ClearUrls/issues/267)
|
||||||
|
|
||||||
## [1.8.4] - 2019-09-26
|
## [1.8.4] - 2019-09-26
|
||||||
|
|
||||||
### Compatibility note
|
### Compatibility note
|
||||||
|
|
|
@ -24,38 +24,26 @@
|
||||||
(function (window) {
|
(function (window) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
function injectFunction(func) {
|
function injectFunction() {
|
||||||
var ele = document.createElement('script');
|
var ele = document.createElement('script');
|
||||||
var s = document.getElementsByTagName('script')[0];
|
var s = document.getElementsByTagName('script')[0];
|
||||||
|
|
||||||
ele.type = 'text/javascript';
|
ele.type = 'text/javascript';
|
||||||
ele.textContent = '(' + func + ')();';
|
ele.textContent = "Object.defineProperty(window, 'rwt', {" +
|
||||||
|
" value: function() { return false; }," +
|
||||||
|
" writable: false," +
|
||||||
|
" configurable: false" +
|
||||||
|
"});";
|
||||||
|
|
||||||
s.parentNode.insertBefore(ele, s);
|
s.parentNode.insertBefore(ele, s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Disable the url rewrite function
|
|
||||||
*/
|
|
||||||
function disableURLRewrite() {
|
|
||||||
function inject_init() {
|
|
||||||
/* Define the url rewrite function */
|
|
||||||
Object.defineProperty(window, 'rwt', {
|
|
||||||
value: function() { return true; },
|
|
||||||
writable: false, // set the property to read-only
|
|
||||||
configurable: false
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
injectFunction(inject_init);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The main entry
|
* The main entry
|
||||||
*/
|
*/
|
||||||
function main()
|
function main()
|
||||||
{
|
{
|
||||||
disableURLRewrite();
|
injectFunction();
|
||||||
|
|
||||||
document.addEventListener('mouseover', function (event) {
|
document.addEventListener('mouseover', function (event) {
|
||||||
var a = event.target, depth = 1;
|
var a = event.target, depth = 1;
|
||||||
|
@ -65,9 +53,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if (a && a.tagName == 'A') {
|
if (a && a.tagName == 'A') {
|
||||||
a.removeAttribute('onmousedown');
|
try {
|
||||||
var clone = a.cloneNode(true);
|
a.removeAttribute('data-cthref');
|
||||||
a.parentNode.replaceChild(clone, a);
|
delete a.dataset.cthref;
|
||||||
|
} catch(e) {
|
||||||
|
console.log(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, true);
|
}, true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -186,7 +186,8 @@
|
||||||
".*(clastarti\\.cc).*",
|
".*(clastarti\\.cc).*",
|
||||||
".*(kreditkarten-banking\\.lbb\\.de).*",
|
".*(kreditkarten-banking\\.lbb\\.de).*",
|
||||||
".*(facebook\\.)\\w{2,}.*(\\/groups\\/member_bio\\/bio_dialog\\/).*",
|
".*(facebook\\.)\\w{2,}.*(\\/groups\\/member_bio\\/bio_dialog\\/).*",
|
||||||
".*([\\.]?tinkoff\\.ru).*"
|
".*([\\.]?tinkoff\\.ru).*",
|
||||||
|
".*(cyberport\\.de).*(\\/adscript\\.php).*"
|
||||||
],
|
],
|
||||||
"redirections": [],
|
"redirections": [],
|
||||||
"forceRedirection": false
|
"forceRedirection": false
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"name": "ClearURLs",
|
"name": "ClearURLs",
|
||||||
"version": "1.8.4",
|
"version": "1.8.5",
|
||||||
"author": "Kevin Röbert",
|
"author": "Kevin Röbert",
|
||||||
"description": "Remove tracking elements from URLs.",
|
"description": "Remove tracking elements from URLs.",
|
||||||
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
"homepage_url": "https://gitlab.com/KevinRoebert/ClearUrls",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user