1// coded by Vadim Garinov (special for all-for-vkontakte.ru) 2 3function hasElement(f_tag, f_selector){ 4function checkType(value) { 5 var s = typeof value; 6 if (s === 'object') { 7 if (value) { 8 if (Object.prototype.toString.call(value) == '[object Object]') { 9 s = 'object'; 10 }else{ 11 s = ''; 12 } 13 } else { 14 s = 'null'; 15 } 16 } 17 return s; 18} 19 if (checkType(f_tag) == 'object'){ 20 return f_tag.is(f_selector); 21 } 22 if (checkType(f_tag) == 'string'){ 23 return $(f_tag).is(f_selector); 24 } 25} 26 27 // 28 function showAlert(f_message){ 29 uAlert.open('ofRoot', 'black', f_message, 3000); 30 } 31 32 // 33 function isRoot(){ 34 return g_user_group_id == 4; 35 }
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.