Skip to content

Instantly share code, notes, and snippets.

@sokol815
sokol815 / tampermonkey_export_alert_log.js
Created November 1, 2018 17:30
A Tampermonkey script to export the TradingView Alert log. Requires the Quickalerts extension (quickalerts.us)
// ==UserScript==
// @name QA Alert List Export addon
// @namespace http://tampermonkey.net/*
// @version 1.0.0
// @description Export csv of Alerts that have fired.
// @author sokol815 LTC: LNpicahdGTFpuXNEhTVoUErPb6EEjBdmwg
// @match https://www.tradingview.com/*
// @grant none
// ==/UserScript==
@sokol815
sokol815 / Domain_Notes_Bookmarklet.js
Created July 31, 2018 18:33
A bookmarklet to let you write notes stored in your localstorage for the domain you're currently on.
javascript:(function(){
var parentID = 'a3q_parent';
var dID = 'a3q_customNotes';
var buttonID = 'a3q_close_button';
var saveThrottleSpeed = 100;
var lastSave = Date.now();
var waitCallback;
function a3q_Save(force){
force = force || false;
@sokol815
sokol815 / code.gs
Last active October 13, 2022 02:35
QA GSheets API
// Usage
// code and directions from: https://gist.github.com/sokol815/139ebf969d32100428c4cd4161204615
// created by @sokol#6328 on discord.
var SCRIPT_PROP = PropertiesService.getScriptProperties(); // new property service
//function doGet(e){
// return handleResponse(e);
//}
@sokol815
sokol815 / quickalerts.md
Last active April 10, 2021 11:10
QuickAlerts Extension for Tradingview
@sokol815
sokol815 / ECS.js
Last active April 4, 2020 02:56
Entity Component System in javascript
var App = App || {};
if( !Acc ) {
console.warn('Acc is required for App.ECS to function');
}
App.ECS = function( parent ) {
this.parent = parent;
this.systems = {};
this.components = {};
// ==UserScript==
// @name Tower of Prestige 3 automation
// @namespace http://tampermonkey.net/*
// @version 1.0.0
// @description Automates "playing" Tower of Prestige 3
// @author sokol815
// @match https://makiki99.github.io/prestige3/
// @grant none
// ==/UserScript==
@sokol815
sokol815 / alertLogExport.js
Created January 10, 2019 01:26
Tradingview Script to download Alert log
(function() {
var rows = $($(".alert-list")[1]).find('tr');
var csv = '';
var headers = $(rows[0]).find('th');
for( var i = 0; i < headers.length; i++ ) {
csv += (i > 0 ? ',' : '' ) + $(headers[i]).text().trim().split(',').join(' ');
}