Skip to content

Instantly share code, notes, and snippets.

@DenimTornado
DenimTornado / script.js
Last active May 15, 2018 11:36
Convert comments list into nested object with for
const comments2 = [
{
id: 1,
text: 'Комментарий 1',
parent_id: 0,
},
{
id: 12,
text: 'Комментарий 12',
parent_id: 3,
@DenimTornado
DenimTornado / script.js
Created May 15, 2018 11:39
Convert comments list into nested object with Array.reduce
const comments = [
{
id: 1,
text: 'Комментарий 1',
parent_id: 0,
},
{
id: 12,
text: 'Комментарий 12',
parent_id: 3,
@DenimTornado
DenimTornado / stats_parser.txt
Created June 8, 2018 11:36
Stats parser for FM
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / stats_parser2.txt
Last active June 8, 2018 12:36
Stats parser for FM + generate
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / stats_parse3.txt
Created June 8, 2018 20:39
Stats parser for FM New scheme
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
// @grant none
// ==/UserScript==
@DenimTornado
DenimTornado / gg_script.lua
Last active November 15, 2018 09:42
Lua script for fm stats
function edit (a, b, c)
gg.clearResults(a)
gg.searchNumber(a, gg.TYPE_DWORD);
gg.searchNumber(b, gg.TYPE_DWORD);
local t = gg.getResults(200)
for i,v in ipairs(t) do
local add = 0
local tr = {}
for j = 1, 45, 1 do
if j == 1 then
@DenimTornado
DenimTornado / script.js
Last active January 9, 2019 13:45
Tampermonkey fifarenderz.com stats
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// ==/UserScript==