You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/src/main/java/ir/amirroid/chatguard/core/web_content_extractor/implementation/DefaultWebContentExtractor.kt
+9-15Lines changed: 9 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1248,20 +1248,6 @@ class DefaultWebContentExtractor(
1248
1248
return true;
1249
1249
""".trimIndent()
1250
1250
1251
-
privatefunclearCharacterCounterScript() ="""
1252
-
if (window.__chatguardCounterElement) {
1253
-
window.__chatguardCounterElement.remove();
1254
-
delete window.__chatguardCounterElement;
1255
-
}
1256
-
1257
-
if (window.__chatguardCounterObserver) {
1258
-
window.__chatguardCounterObserver.disconnect();
1259
-
delete window.__chatguardCounterObserver;
1260
-
}
1261
-
1262
-
return true;
1263
-
""".trimIndent()
1264
-
1265
1251
privatefunbuildClearAllFlagsScript() ="""
1266
1252
(function() {
1267
1253
if (window.__chatguardSendObserver) {
@@ -1306,8 +1292,16 @@ class DefaultWebContentExtractor(
1306
1292
btn.remove();
1307
1293
});
1308
1294
1309
-
${clearCharacterCounterScript()}
1295
+
if (window.__chatguardCounterElement) {
1296
+
window.__chatguardCounterElement.remove();
1297
+
delete window.__chatguardCounterElement;
1298
+
}
1310
1299
1300
+
if (window.__chatguardCounterObserver) {
1301
+
window.__chatguardCounterObserver.disconnect();
1302
+
delete window.__chatguardCounterObserver;
1303
+
}
1304
+
1311
1305
var infoMessages = document.querySelectorAll('.chatguard-info-message');
0 commit comments