-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomID.js
More file actions
40 lines (31 loc) · 1.08 KB
/
Copy pathRandomID.js
File metadata and controls
40 lines (31 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/** FireRTC Auto CallerID Reset **/
// Created by Daniel Crooks
/*
1. Go To: https://phone.firertc.com/settings
2. Open Up Console
3. Paste Code whenver you need a new number
*/
// Web Address - https://phone.firertc.com/settings
// CallerID - #address_ua_config_display_name
// Save Btn - button.btn.btn-default
function random_id() {
// Generate Random Phone Number
var a = Math.floor((Math.random() * 10));
var b = Math.floor((Math.random() * 10));
var c = Math.floor((Math.random() * 10));
var d = Math.floor((Math.random() * 10));
var e = Math.floor((Math.random() * 10));
var f = Math.floor((Math.random() * 10));
var g = Math.floor((Math.random() * 10));
var h = Math.floor((Math.random() * 10));
var i = Math.floor((Math.random() * 10));
var j = Math.floor((Math.random() * 10));
var caller_id = ("1"+ a + b + c + d + e + f + g + h + i + j);
// Change Text-Box of CallerID to generated number
var phone_input = document.getElementById("address_ua_config_display_name");
phone_input.value = caller_id;
// Click Save
$("button.btn.btn-default").click();
};
// Run It!
random_id();