Skip to content

Instantly share code, notes, and snippets.

View jamesl1001's full-sized avatar
🦙

James Alexander Lee jamesl1001

🦙
View GitHub Profile
@jamesl1001
jamesl1001 / gist:d839272a92821848889ca48fcde06a1b
Created November 9, 2023 15:03
AlwaysShowYoutubeSaveButton.user.js
// ==UserScript==
// @name Always Show Youtube Save Button
// @namespace https://jal.dev/
// @version 0.1
// @description Hide Youtube clip, download and thanks buttons to ensure Save button isn't hidden under More (...) menu.
// @author James Alexander Lee
// @match https://www.youtube.com/watch*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
// ==/UserScript==
@jamesl1001
jamesl1001 / uBlockHideYoutubeDownloadButton.md
Last active November 23, 2023 00:53
uBlock filter to hide Youtube clip, download and thanks buttons to ensure Save button isn't hidden under More (...) menu

uBlock > Dashboard > My filters

www.youtube.com###flexible-item-buttons > *:has([aria-label="Clip"])
www.youtube.com###flexible-item-buttons > *:has([aria-label="Download"])
www.youtube.com###flexible-item-buttons > *:has([aria-label="Thanks"])

Note: YouTube UI becomes very slow over time when uBlock is enabled.

It seems Tipsi will not update the stripe module, as there is an official library from Stripe Itself.

I'm using stripe for Google pay and Apple Pay only. Even though I haven't used the Card payment, It is mandatory to update to 16.9.0/16.10.0 in order to prevent rejection.

One Good Way: Open Android Studio -> Go to Build.gradle of tipsi-stripe -> Update Stripe SDK to 16.9.0 (it will show you the tooltip dialog box to update to 16.9.0, as you hover over implementation 'com.stripe:stripe-android:10.4.6' line).

Click Sync now (in the header part of build.gradle)

Go to tipsi-stripe -> java ->com.gettipsi.stripe

@jamesl1001
jamesl1001 / PokeHuntrAutoclick.user.js
Last active January 15, 2018 14:28
Autoclicks the "Scan Location" button and closes the "scan did not start" dialog on pokehuntr.com
// ==UserScript==
// @name PokeHuntrAutoclick
// @namespace http://jalproductions.co.uk/
// @version 0.3
// @description Autoclicks the "Scan Location" button and closes the "scan did not start" dialog.
// @author JaL Productions
// @copyright 2018, JaL Productions
// @downloadURL https://gist.github.com/jamesl1001/5dee9d9ddfff36de29b461d35c386780/raw/PokeHuntrAutoclick.user.js
// @match https://pokehuntr.com/
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@jamesl1001
jamesl1001 / hideCommonPokemon.js
Created July 28, 2016 14:25
Tampermonkey script to hide common Pokémon from Pokévision map.
// ==UserScript==
// @name Hide Common Pokémon from Pokévision
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Hide those Pokémon who are getting in the way of being the very best!
// @author http://jalproductions.co.uk/
// @match https://pokevision.com/
// @grant none
// ==/UserScript==
@jamesl1001
jamesl1001 / HideAdsOutlook.user.js
Last active March 3, 2021 23:00
Hides the advertisement panel on Outlook.com
// ==UserScript==
// @name Hide Ads Outlook
// @namespace https://jamesalexanderlee.co.uk/
// @version 0.11
// @description Hides the advertisement panel on Outlook.com
// @match https://outlook.live.com/*
// @author James Alexander Lee
// @copyright 2021, James Alexander Lee
// @lastUpdated 2021/03/03
// @downloadURL https://gist.github.com/jamesl1001/6828049765bd89509da1/raw/
@jamesl1001
jamesl1001 / bodyclass.php
Created September 18, 2013 16:40
Explode uri path ignoring trailing slash
<?php
$url = parse_url($_SERVER["REQUEST_URI"]);
$path = explode("/", trim($url['path'], '/'));
echo (empty($path[count($path)-1]) ? "index" : $path[count($path)-1]);
// Only returns the last part of the path
// e.g. http://domain.co.uk/user/james will only return 'james'
@jamesl1001
jamesl1001 / httpd.conf
Created September 17, 2013 23:01
Use a different .htaccess for a sandbox environment
Add the following to the bottom of wamp > apache > httpd.conf
AccessFileName local.htaccess
Restart services
@jamesl1001
jamesl1001 / _scripts.scss
Created May 20, 2013 15:34
A function for use when overriding font styles for different scriptures, written with @stefano-belloro.
// ====================
// = Language Scripts =
// ====================
// A function for use when overriding font styles for different scriptures.
// Essentially an associative array loop which first looks for a keypair which matching the $script for that service.
// If that is not found, it will revert to the latin value.
// NOTE: the latin value should ALWAYS be present.