Skip to content

Instantly share code, notes, and snippets.

View stanley2058's full-sized avatar
🐧
I use (mostly) Arch btw

Stanley Wang stanley2058

🐧
I use (mostly) Arch btw
  • Taipei, Taiwan
  • 04:17 (UTC +08:00)
View GitHub Profile
// ==UserScript==
// @name HD Facebook Emoji
// @author STW
// @description Replace all emojis with 64x64 HD images
// @match https://www.facebook.com/*
// @match https://www.messenger.com/*
// @require https://unpkg.com/@reactivex/rxjs/dist/global/rxjs.umd.min.js
// @icon https://www.google.com/s2/favicons?sz=64&domain=facebook.com
// @grant GM_xmlhttpRequest
// @grant GM_getValue
@stanley2058
stanley2058 / ui-class-debugger.user.js
Last active April 8, 2025 04:56
Highlight all `ui-` class on a web page
// ==UserScript==
// @name HackMD `ui-` classes highlighter
// @namespace http://hackmd.io/
// @version 0.1.2
// @description Show all `ui-` classes
// @author stanley2058, Yukaii
// @match https://hackmd.io/*
// @match https://local.localhost/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=hackmd.io
// @grant GM.getValue
@stanley2058
stanley2058 / AlbumArtStackView.qml
Last active December 6, 2022 13:43
Fix issue with plasma Media Player Control not showing thumbnails from sites like YouTube
/*
SPDX-FileCopyrightText: 2013 Marco Martin <[email protected]>
SPDX-FileCopyrightText: 2014 Sebastian Kügler <[email protected]>
SPDX-FileCopyrightText: 2014 Kai Uwe Broulik <[email protected]>
SPDX-License-Identifier: GPL-2.0-or-later
*/
import QtQuick 2.15
import QtQuick.Controls 2.15
@stanley2058
stanley2058 / script.js
Created September 16, 2020 14:42
AREE Answering Script
// paste into console and hit enter
fetch('https://raw.githubusercontent.com/jimting/AREEAnswer/master/answer.json').then(res => res.json()).then(res => {
const data = res;
const optionList = [...document.querySelectorAll('.nobgcl')];
[...document.querySelectorAll('table p')].forEach((p, i) => {
const result = data.filter(d => d.name.includes(p.innerText));
if (result.length > 0) {
const opt = result[0].options.filter(o => o.toLocaleLowerCase().includes('v'))[0];
if (opt) {
@stanley2058
stanley2058 / README.md
Last active February 15, 2022 13:47
Remove Facebook Ad Posts(zh-TW)

Important

This gist has now been migrated into it's own GitHub repo: https://github.com/stanley2058/RemoveFacebookAds-ZH Please visit the new repo and reinstall the script from there, this gist will no longer be maintained.

Why Migration? Using a GitHub repo allows the users to be notified when ever there is a new update to the script, since the download url would always be the same.