Skip to content

Instantly share code, notes, and snippets.

View AKASGaming's full-sized avatar
😃

Ashton AKASGaming

😃
View GitHub Profile
@mzywiol
mzywiol / easy_copy_lyrics.js
Last active December 29, 2023 13:16
GreaseMonkey script to copy song lyrics from popular lyrics websites with just one click! Click on a button next to the song text and it'll get copied in its entirety to your clipboard. Works with: lyrics.wikia, A-Z Lyrics, Direct Lyrics, Songtexte, Genius.com, Musixmatch, Lyricsmode, Lyricsfreak, Tekstowo.pl, Sing365. Additionally, it removes f…
// ==UserScript==
// @name Copy lyrics
// @namespace xz
// @description Copy lyrics from popular lyrics websites
// @include http://lyrics.wikia.com/*
// @include http://www.azlyrics.com/*
// @include http://www.directlyrics.com/*
// @include http://www.songtexte.com/*
// @include *genius.com*
// @include *www.musixmatch.com/lyrics/*
@r3t3ch
r3t3ch / eBay_Local_Time.user.js
Created June 28, 2018 22:04
eBay Local Time
// ==UserScript==
//
// @name eBay Local Time
// @description Converts dates and times on eBay to the user's local time. Works on the US, UK and DE sites.
// @author nice_bow_tie
//
// @homepage http://userscripts-mirror.org/scripts/show/153187
//
// @include http*://*.ebay.*
//
@bene-we
bene-we / README.md
Last active May 3, 2024 13:23
Calculate the age of a person and write it to the event's description in your birthday calendar using Google Apps Script

Calculate the age of a person and write it to the event's description in your birthday calendar using Google Apps Script

This script uses Google Apps Script to access one's Google Calendar and calculate the age on a person's birthday. In the best case you have a custom calendar where your birthdays are stored at. If not, uncomment line 20 and use the filter function at the bottom.

Steps to setup everything

  1. Head to https://script.google.com/home/my and create a new project. Rename the existing file Code.gs to your liking and paste the code from calculateAge.gs.
  2. Paste your calendar ID in line 9 (you can find it in the Google Calendar Settings)
  3. Make sure to add the birth year of a person to the location field (or customize the script)
  4. Customize the message in line 36
@Allvaa
Allvaa / ExtendedMessage.js
Last active April 16, 2024 18:28
Discord.js v12 Inline Replies
const { APIMessage, Structures } = require("discord.js");
class ExtAPIMessage extends APIMessage {
resolveData() {
if (this.data) return this;
super.resolveData();
const allowedMentions = this.options.allowedMentions || this.target.client.options.allowedMentions || {};
if (allowedMentions.repliedUser !== undefined) {
if (this.data.allowed_mentions === undefined) this.data.allowed_mentions = {};
Object.assign(this.data.allowed_mentions, { replied_user: allowedMentions.repliedUser });
@MeguminSama
MeguminSama / Discord Experiments.js
Last active June 7, 2024 14:14
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";