Telegram Web K with changes to work inside I2P https://web.telegram.i2p/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
4.8 KiB

function toCodePoints(unicodeSurrogates) {
const points = [];
let char = 0;
let previous = 0;
let i = 0;
while(i < unicodeSurrogates.length) {
char = unicodeSurrogates.charCodeAt(i++);
if(previous) {
points.push((0x10000 + ((previous - 0xd800) << 10) + (char - 0xdc00)).toString(16));
previous = 0;
} else if (char > 0xd800 && char <= 0xdbff) {
previous = char;
} else {
points.push(char.toString(16));
}
}
if(points.length && points[0].length === 2) {
points[0] = '00' + points[0];
}
return points;
}
var eye = "๐Ÿ‘โ€๐Ÿ—จ";
toCodePoints(eye)
function ccc(str) {
return str.split('').map(c => c.charCodeAt(0).toString(16));
}
ccc("๐Ÿณ๏ธโ€๐ŸŒˆ")
ccc("๐Ÿ‹๏ธโ€โ™€๏ธ");
"๐ŸŒโ€โ™€";
var regexp = new RegExp("(?:๐Ÿ‘จ๐Ÿปโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘จ๐Ÿผโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐Ÿ‘จ๐Ÿฝโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐Ÿ‘จ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐Ÿ‘จ๐Ÿฟโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿปโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿปโ€๐Ÿคโ€๐Ÿ‘ฉ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿผโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿผโ€๐Ÿคโ€๐Ÿ‘ฉ<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐Ÿ‘ฉ๐Ÿฝโ€๐Ÿคโ€๐Ÿ‘ฉ<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐Ÿ‘ฉ๐Ÿพโ€๐Ÿคโ€๐Ÿ‘ฉ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD>]|๐Ÿ‘ฉ๐Ÿฟโ€๐Ÿคโ€๐Ÿ‘จ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ฉ๐Ÿฟโ€๐Ÿคโ€๐Ÿ‘ฉ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘๐Ÿปโ€๐Ÿคโ€๐Ÿง‘<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘๐Ÿผโ€๐Ÿคโ€๐Ÿง‘<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘๐Ÿฝโ€๐Ÿคโ€๐Ÿง‘<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘๐Ÿพโ€๐Ÿคโ€๐Ÿง‘<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘๐Ÿฟโ€๐Ÿคโ€๐Ÿง‘<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘|๐Ÿ‘ซ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ฌ<EFBFBD>[<EFBFBD>-<EFBFBD>]|๐Ÿ‘ญ<EFBFBD>[<EFBFBD>-<EFBFBD>]|<EFBFBD>[<EFBFBD>-<EFBFBD>])|(?:<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿง‘)(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?โ€(?:โš•|โš–|โœˆ|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>])|(?:<EFBFBD>[<EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD>]|โ›น)((?:<EFBFBD>[<EFBFBD>-<EFBFBD>])โ€[โ™€โ™‚])|(?:<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>])(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?โ€[โ™€โ™‚]|(?:๐Ÿ‘จโ€โค๏ธโ€๐Ÿ’‹โ€๐Ÿ‘จ|๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘จโ€๐Ÿ‘จโ€๐Ÿ‘งโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€โค๏ธโ€๐Ÿ’‹โ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘จโ€โค๏ธโ€๐Ÿ‘จ|๐Ÿ‘จโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘จโ€๐Ÿ‘งโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘จโ€๐Ÿ‘จโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘จโ€๐Ÿ‘ฉโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€โค๏ธโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€๐Ÿ‘ฆโ€๐Ÿ‘ฆ|๐Ÿ‘ฉโ€๐Ÿ‘งโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€๐Ÿ‘ฉโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿณ๏ธโ€โšง|๐Ÿณ๏ธโ€๐ŸŒˆ|๐Ÿดโ€โ˜ |๐Ÿ•โ€๐Ÿฆบ|๐Ÿปโ€โ„|๐Ÿ‘โ€๐Ÿ—จ|๐Ÿ‘จโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฉโ€<EFBFBD>[<EFBFBD><EFBFBD>]|๐Ÿ‘ฏโ€โ™€|๐Ÿ‘ฏโ€โ™‚|๐Ÿคผโ€โ™€|๐Ÿคผโ€โ™‚|๐Ÿงžโ€โ™€|๐Ÿงžโ€โ™‚|๐ŸงŸโ€โ™€|๐ŸงŸโ€โ™‚|๐Ÿˆโ€โฌ›)|[#*0-9]๏ธ?โƒฃ|(?:[ยฉยฎโ„ขโ™Ÿ])|(?:<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|[โ€ผโ‰โ„นโ†”-โ†™โ†ฉโ†ชโŒšโŒ›โŒจโโญ-โฏโฑโฒโธ-โบโ“‚โ–ชโ–ซโ–ถโ—€โ—ป-โ—พโ˜€-โ˜„โ˜Žโ˜‘โ˜”โ˜•โ˜˜โ˜ โ˜ขโ˜ฃโ˜ฆโ˜ชโ˜ฎโ˜ฏโ˜ธ-โ˜บโ™€โ™‚โ™ˆ-โ™“โ™ โ™ฃโ™ฅโ™ฆโ™จโ™ปโ™ฟโš’-โš—โš™โš›โšœโš โšกโšงโšชโšซโšฐโšฑโšฝโšพโ›„โ›…โ›ˆโ›โ›‘โ›“โ›”โ›ฉโ›ชโ›ฐ-โ›ตโ›ธโ›บโ›ฝโœ‚โœˆโœ‰โœโœ’โœ”โœ–โœโœกโœณโœดโ„โ‡โ—โฃโคโžกโคดโคตโฌ…-โฌ‡โฌ›โฌœโญโญ•ใ€ฐใ€ฝใŠ—ใŠ™])(?:(?!๏ธŽ))|(?:(?:<EFBFBD>[<EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>]|[โ˜โ›ทโ›นโœŒโœ])(?:(?!๏ธŽ))|(?:<EFBFBD>[<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>]|[โœŠโœ‹]))(?:<EFBFBD>[<EFBFBD>-<EFBFBD>])?|(?:๐Ÿด๓ ง๓ ข๓ ฅ๓ ฎ๓ ง๓ ฟ|๐Ÿด๓ ง๓ ข๓ ณ๓ ฃ๓ ด๓ ฟ|๐Ÿด๓ ง๓ ข๓ ท๓ ฌ๓ ณ๓ ฟ|๐Ÿ‡ฆ<EFBFBD>[<EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐Ÿ‡ง<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]|๐Ÿ‡จ<EFB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EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>]|<EFBFBD>[<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD><EFBFBD>-<EFBFBD>]|[โฉ-โฌโฐโณโ™พโ›Žโœ…โœจโŒโŽโ“-โ•โž•-โž—โžฐโžฟ๎”Š])|๏ธ")