Skip to content

Instantly share code, notes, and snippets.

💩
Working on: twitch-chatbot

InsanityMeetsHH

💩
Working on: twitch-chatbot
View GitHub Profile
@InsanityMeetsHH
InsanityMeetsHH / email-encrypt-decrypt.phtml
Last active Jan 13, 2020
This is an email encrypt / decrypt extracted from TYPO3. It is useful to protecting your email against spam bots.
View email-encrypt-decrypt.phtml
<?php
$email = 'software@insanitymeetshh.net';
$emailEncode = quoteJSvalue(encryptEmail($email, '-2'));
function quoteJSvalue($value) {
return strtr(
json_encode((string)$value, JSON_HEX_AMP|JSON_HEX_APOS|JSON_HEX_QUOT|JSON_HEX_TAG),
[
'"' => '\'',
@InsanityMeetsHH
InsanityMeetsHH / twitch-chest-auto-click.js
Last active Feb 12, 2020
This code collects automatically the channel points chest which pops up every 15 minutes.
View twitch-chest-auto-click.js
// open a twitch channel with channel points
// open chat or popout chat
// open inspector (Opera: CTRL + SHIFT + C, Chrome: CTRL + SHIFT + I, Firefox: F12)
// open console in tab
// copy / paste code + ENTER
// only works if you view a live stream. (just open chat is not enough)
var chestPoints = 0;
document.querySelector('.community-points-summary button').click();
You can’t perform that action at this time.