Skip to content

Instantly share code, notes, and snippets.

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

Stanley Wang stanley2058

🐧
I use Arch btw
  • Taipei, Taiwan
  • 21:35 (UTC +08:00)
View GitHub Profile
@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 <mart@kde.org>
SPDX-FileCopyrightText: 2014 Sebastian Kügler <sebas@kde.org>
SPDX-FileCopyrightText: 2014 Kai Uwe Broulik <kde@privat.broulik.de>
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.