Skip to content

Instantly share code, notes, and snippets.

@Sighery
Sighery / sg-addons-thread.md
Created August 30, 2020 13:28
SG Add-Ons Registry - List of all scripts for SG [Update: 30 Aug]

So you want your Steamgifts more beautiful, or miss functionality to browse through and enter giveaways faster? The Steamgifts Add-Ons Registry below lists all the currently available add-ons that hopefully make using Steamgifts a better experience.

Please let me know in the comments what other scripts, styles, plugins, extensions or apps you folks are using on Steamgifts! I will add all suggestions to the app registry here. If you have any ideas or suggestions for a script or related, you should check this thread!

Note that some of the add-ons may not be compatible with each other, check the specific add-on thread for details!

#New

@Sighery
Sighery / .gitignore
Last active March 5, 2020 11:23
Test collections.abc deprecation warning in datetoken
venv/
__pycache__/
@Sighery
Sighery / draggable-absolute-dialog.js
Last active November 16, 2018 10:25
Make a dialog box that has position absolute draggable
function dragElement(element) {
// Source: https://www.w3schools.com/howto/howto_js_draggable.asp
// Requisites: Dialog element must be position absolute.
// Usage: dragElement(document.getElementById("mydiv"));
var pos1 = 0, pos2 = 0, pos3 = 0, pos4 = 0;
// Try to automatically find a header by searching the direct children for
// an id with "header" in it
if (element.id !== "") {
@Sighery
Sighery / python-string-format.js
Created September 2, 2018 00:02
Implement a format function similar to Python's in JavaScript
// Check if it's not implemented first. Source: https://stackoverflow.com/a/4673436
if (!String.prototype.format) {
String.prototype.format = function() {
var args = arguments;
return this.replace(/{(\d+)}/g, function(match, number) {
return typeof args[number] != 'undefined'
? args[number]
: match
;
});