Skip to content

Instantly share code, notes, and snippets.

@ImanMh
Created March 31, 2017 15:55
Show Gist options
  • Save ImanMh/03ef5534c34eb3ca0ebb49a6eb022827 to your computer and use it in GitHub Desktop.
Save ImanMh/03ef5534c34eb3ca0ebb49a6eb022827 to your computer and use it in GitHub Desktop.
A trick to delete all Irancell 4G modem SMSs in the fastest possible way
//put a debugger where ajax_delete_sms_message calls del and type this in console
//del = function () {};
//this fuction is supper heavy and we are trying to bypass it
//one of the messages will be removed now inpect yes button again in next msg delete modal
//and type this snippet
//i is the id of first msg and j is a simple counter
var i = '1366';
var j = '0';
var timer = setInterval(function () {
top.main_frame.ajax_delete_sms_message(i+','+j+',0');
i++;
j++;
console.log(i);
}, 1200)
//check your network panel with 'delete' filter, you must see reponses like this
//Successfully 0 -1 -1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment