Skip to content

Commit c63571a

Browse files
committed
Version 1.3.1
1 parent 27c18e6 commit c63571a

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,7 @@ Version 1.2.1
4444
Version 1.3.0
4545
- Added functionality to remove blur filter from article;
4646
- Remove ads within article and reduce the excessive space it occupies.
47+
48+
Version 1.3.1
49+
- Removed unnecessary timeout-based loop;
50+
- Removed forgotten console log printers.

antimessaggero.js

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,10 @@ function removeBlurFilter () {
6060
}
6161

6262
function removeExcessSpacing () {
63-
setTimeout(function () {
64-
let elems = document.body.getElementsByClassName("inread_adv");
65-
console.log("prima: "+elems.length)
66-
if (elems.length > 0) {
67-
for (let elem of elems) {
68-
elem.parentNode.removeChild(elem)
69-
}
70-
console.log("dopo: "+elems.length)
71-
} else {
72-
console.log("ripeti")
73-
removeExcessSpacing()
63+
let elems = document.body.getElementsByClassName("inread_adv");
64+
if (elems.length > 0) {
65+
for (let elem of elems) {
66+
elem.parentNode.removeChild(elem)
7467
}
75-
}, 100);
68+
}
7669
}

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"manifest_version": 2,
33
"name": "Anti-Messaggero",
4-
"version": "1.3.0",
4+
"version": "1.3.1",
55
"description": "Automatically remove the paywall that blocks a user from reading an article and the pop-up containing the video attached to it.",
66
"homepage_url": "https://github.com/lorenzodb1/anti-messaggero",
77
"icons": {

0 commit comments

Comments
 (0)