@@ -203,34 +203,34 @@ var D3 = {
203
203
} ) ;
204
204
} ,
205
205
206
- createContextMenu : function ( ) {
207
- const function_list = {
208
- 'functions_rot13' : [ 'function_rot13' , "rot13decode" ] ,
209
- 'functions_timestamp' : [ 'function_timestamp' , "timestampToDate" ] ,
210
- 'functions_bin2hex' : [ 'function_bin2hex' , "bin2hex" ] ,
211
- 'functions_bin2txt' : [ 'function_bin2txt' , "bin2txt" ] ,
212
- 'functions_txt2hex' : [ 'function_ascii2hex' , "txt2hex" ] ,
213
- 'functions_hex2txt' : [ 'function_hex2ascii' , "hex2txt" ] ,
214
- 'functions_uri_encode' : [ 'function_uri_encode' , "uri_encode" ] ,
215
- 'functions_uri_decode' : [ 'function_uri_decode' , "uri_decode" ] ,
216
- 'functions_htmlentities' : [ 'function_html_entities' , "htmlentities" ] ,
217
- 'functions_html_entity_decode' : [ 'function_html_entity_decode' , "html_entity_decode" ] ,
218
- 'functions_htmlspecialchars' : [ 'function_htmlspecialchars' , "htmlspecialchars" ] ,
219
- 'functions_htmlspecialchars_decode' : [ 'function_htmlspecialchars_decode' , "htmlspecialchars_decode" ] ,
220
- 'functions_md5' : [ 'function_md5' , "md5" ] ,
221
- 'functions_sha1' : [ 'function_sha1' , "sha1" ] ,
222
- 'functions_crc32' : [ 'function_crc32' , "crc32" ] ,
223
- 'functions_quoted_printable_decode' : [ 'function_quoted_printable_decode' , "quoted_printable_decode" ] ,
224
- 'functions_quoted_printable_encode' : [ 'function_quoted_printable_encode' , "quoted_printable_encode" ] ,
225
- 'functions_escapeshellarg' : [ 'function_escapeshellarg' , "escapeshellarg" ] ,
226
- 'functions_base64_encode' : [ 'function_base64_encode' , "base64_encode" ] ,
227
- 'functions_base64_decode' : [ 'function_base64_decode' , "base64_decode" ] ,
228
- 'functions_unserialize' : [ 'function_unserialize' , "unserialize" ] ,
229
- 'functions_leet_encode' : [ 'function_leet_encode' , "leetEncode" ] ,
230
- 'functions_leet_decode' : [ 'function_leet_decode' , "leetDecode" ] ,
231
- 'functions_reverse' : [ 'function_reverse_text' , "reverseText" ] ,
232
- } ;
206
+ function_list : {
207
+ 'functions_rot13' : [ 'function_rot13' , "rot13decode" ] ,
208
+ 'functions_timestamp' : [ 'function_timestamp' , "timestampToDate" ] ,
209
+ 'functions_bin2hex' : [ 'function_bin2hex' , "bin2hex" ] ,
210
+ 'functions_bin2txt' : [ 'function_bin2txt' , "bin2txt" ] ,
211
+ 'functions_txt2hex' : [ 'function_ascii2hex' , "txt2hex" ] ,
212
+ 'functions_hex2txt' : [ 'function_hex2ascii' , "hex2txt" ] ,
213
+ 'functions_uri_encode' : [ 'function_uri_encode' , "uri_encode" ] ,
214
+ 'functions_uri_decode' : [ 'function_uri_decode' , "uri_decode" ] ,
215
+ 'functions_htmlentities' : [ 'function_html_entities' , "htmlentities" ] ,
216
+ 'functions_html_entity_decode' : [ 'function_html_entity_decode' , "html_entity_decode" ] ,
217
+ 'functions_htmlspecialchars' : [ 'function_htmlspecialchars' , "htmlspecialchars" ] ,
218
+ 'functions_htmlspecialchars_decode' : [ 'function_htmlspecialchars_decode' , "htmlspecialchars_decode" ] ,
219
+ 'functions_md5' : [ 'function_md5' , "md5" ] ,
220
+ 'functions_sha1' : [ 'function_sha1' , "sha1" ] ,
221
+ 'functions_crc32' : [ 'function_crc32' , "crc32" ] ,
222
+ 'functions_quoted_printable_decode' : [ 'function_quoted_printable_decode' , "quoted_printable_decode" ] ,
223
+ 'functions_quoted_printable_encode' : [ 'function_quoted_printable_encode' , "quoted_printable_encode" ] ,
224
+ 'functions_escapeshellarg' : [ 'function_escapeshellarg' , "escapeshellarg" ] ,
225
+ 'functions_base64_encode' : [ 'function_base64_encode' , "base64_encode" ] ,
226
+ 'functions_base64_decode' : [ 'function_base64_decode' , "base64_decode" ] ,
227
+ 'functions_unserialize' : [ 'function_unserialize' , "unserialize" ] ,
228
+ 'functions_leet_encode' : [ 'function_leet_encode' , "leetEncode" ] ,
229
+ 'functions_leet_decode' : [ 'function_leet_decode' , "leetDecode" ] ,
230
+ 'functions_reverse' : [ 'function_reverse_text' , "reverseText" ] ,
231
+ } ,
233
232
233
+ createContextMenu : function ( ) {
234
234
function clearMenu ( ) {
235
235
for ( id in D3 . menuIds ) {
236
236
if ( id && D3 . menuIds [ id ] != null ) {
@@ -246,9 +246,9 @@ var D3 = {
246
246
if ( items . checkboxes [ name ] == true && ! D3 . menuIds [ name ] ) {
247
247
// Menu for selected text
248
248
menu = {
249
- "title" : D3 . translate ( function_list [ name ] [ 0 ] ) ,
249
+ "title" : D3 . translate ( D3 . function_list [ name ] [ 0 ] ) ,
250
250
"contexts" : [ "selection" , "editable" ] ,
251
- "id" : "d3coder-selection-" + function_list [ name ] [ 1 ]
251
+ "id" : "d3coder-selection-" + D3 . function_list [ name ] [ 1 ]
252
252
} ;
253
253
try {
254
254
D3 . menuIds [ name ] = browser . contextMenus . create ( menu ) ;
0 commit comments