Skip to content

Instantly share code, notes, and snippets.

@blissfulyoshi
blissfulyoshi / gist:536ecf296ef6e6144f054f68d2562d60
Last active September 4, 2017 17:32
Indiegala keyloading script
confirm = function() {
return true;
};
var salePanel = document.querySelector('[aria-expanded="true"] [aria-expanded="true"] div[aria-expanded="true"]');
var blah = salePanel.querySelectorAll('a.create-permalink-btn')
var i = 0, howManyTimes = blah.length;
function f() {
blah[i].click();
i++;
if( i < howManyTimes ){
@blissfulyoshi
blissfulyoshi / keyFinder.js
Created June 17, 2019 02:53
Some steam key getter (forgot for what)
confirm = function() {
return true;
};
var salePanel = document.querySelector('.panel-collapse.collapse.in[aria-expanded="true"]');
var blah = salePanel.querySelectorAll('a.create-permalink-btn')
var i = 0, howManyTimes = blah.length;
function f() {
blah[i].click();
i++;
if( i < howManyTimes ){
@blissfulyoshi
blissfulyoshi / TwitchGetUserId.js
Last active August 16, 2020 22:01
Get User_Id for Twitch API
var header = {};
header['Client-ID'] = 'Client-ID';
header.Authorization = 'Bearer ' + 'oauth key';
//assume jquery is loaded
var submitRequest = $.ajax({
url: 'https://api.twitch.tv/helix/users?login=' + 'username',
type: "get",
headers: header
});
@blissfulyoshi
blissfulyoshi / TwitchGetAmqGameId.js
Last active August 16, 2020 22:01
Get Game_Id for AMQ from Twitch API
var header = {};
header['Client-ID'] = 'Client-ID';
header.Authorization = 'Bearer ' + 'oauth key';
//assume jquery is loaded
var submitRequest = $.ajax({
url: 'https://api.twitch.tv/helix/games?name=Anime%20Music%20Quiz',
type: "get",
headers: header
});
@blissfulyoshi
blissfulyoshi / UpdateTwitchChannel.js
Created August 16, 2020 22:03
Update Twitch Stream Name and Game for AMQ streaming
var header = {};
header['Client-ID'] = 'Client-ID';
header.Authorization = 'Bearer ' + 'oauth key';
header['Content-Type'] = 'application/json';
var data = {
game_id: '509058',
title: 'title',
broadcaster_language:"en"
};
[
{
"animeEng": "King of Prism: Shiny Seven Stars",
"animeRomaji": "King of Prism: Shiny Seven Stars",
"songName": "Dramatic LOVE",
"artist": "Junta Terashima, Sōma Saitō, Tasuku Hatanaka, Taku Yashiro, Masashi Igarashi, Takuma Nagatsuka, Yuuma Uchida",
"type": "Insert Song",
"correctCount": 11,
"startTime": 0,
"songDuration": 25.44,
[
{
"animeEng": "Caligula",
"animeRomaji": "Caligula",
"songName": "Renetto",
"artist": "Reina Ueda",
"type": "Opening 1",
"correctCount": 1,
"startTime": 38,
"songDuration": 90.912,
[
{
"animeEng": "Boku, Otaryman",
"animeRomaji": "Boku, Otaryman",
"songName": "No Reason",
"artist": "Rekka Katakiri meets Desen☆Rizotto",
"type": "Opening 1",
"correctCount": 4,
"startTime": 23,
"songDuration": 94.056,
[
{
"animeEng": "Dog & Scissors",
"animeRomaji": "Inu to Hasami wa Tsukaiyō",
"songName": "Wan Wan Wan Wan N_1!!",
"artist": "Inu Musume Club",
"type": "Opening 1",
"correctCount": 52,
"startTime": 40,
"songDuration": 88.056,
[
{
"animeEng": "You and Me.",
"animeRomaji": "Kimi to Boku.",
"songName": "Bye Bye",
"artist": "7!!",
"type": "Opening 1",
"correctCount": 19,
"startTime": 15,
"songDuration": 85.032,