Last active
April 24, 2018 13:04
-
-
Save MojtabaTajik/4d83be5f7f14c53a8dde7ced1c2d0a25 to your computer and use it in GitHub Desktop.
Handy script to remove all incoming SMS messages for TPLink home routers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setInterval(function delAllMsg() { | |
for (var ix = 0; ix < smsInboxPagelist.length; ix++) { | |
var checkboxID = $("#staticCheckbox" + ix); | |
console.log(checkboxID); | |
checkboxID.parents("tr").first().remove(); | |
$.act(ACT_DEL, LTE_SMS_RECVMSGENTRY, smsInboxPagelist[ix].__stack, null); | |
} | |
$('#staticRefresh').click(); | |
}, 10000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment