Skip to content

Instantly share code, notes, and snippets.

View Steve-Mr's full-sized avatar

Maary Steve-Mr

View GitHub Profile
@Steve-Mr
Steve-Mr / twitter_to_fxtwitter.js
Created December 21, 2024 11:48
Replace 'twitter' to 'fxtwitter' when sharing links. Modified version of https://greasyfork.org/zh-CN/scripts/482406-twitter-to-vxtwitter.
// ==UserScript==
// @name Twitter to fxtwitter
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Replace `twitter` to `fxtwitter` when sharing links
// @author Maary
// @match https://twitter.com/*
// @match https://mobile.twitter.com/*
@Steve-Mr
Steve-Mr / index.js
Last active June 10, 2025 11:58 — forked from sakarie9/index.js
Cloudflare Workers Telegram Bot for Url Conversion
/**
* https://github.com/cvzi/telegram-bot-cloudflare
*/
const TOKEN = ENV_BOT_TOKEN // Get it from @BotFather https://core.telegram.org/bots#6-botfather
const WEBHOOK = '/endpoint'
const SECRET = ENV_BOT_SECRET // A-Z, a-z, 0-9, _ and -
const UA = 'Mozilla/5.0 (X11; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0'
@Steve-Mr
Steve-Mr / crx_download.sh
Created April 25, 2024 09:19 — forked from slhck/crx_download.sh
Download CRX file from Chrome Web Store
#!/usr/bin/env bash
#
# Download a Chrome extension from the webstore.
# Extract it to a specified path.
#
# Author: Werner Robitza
set -e
CHROME_VERSION="101.0.4951.57"
import json
import os
import requests
apiAddress = "http://127.0.0.1:8081/"
urlPrefix = apiAddress + "bot" + os.getenv("TELEGRAM_TOKEN")
def findString(sourceStr, targetStr):
if str(sourceStr).find(str(targetStr)) == -1:
! 2022-03-04 https://www.ithome.com
||cmt.ithome.com/comment/$subdocument
! 2022-03-04 https://sspai.com
sspai.com###article-comment-box
! 2022-03-12 https://t.bilibili.com
||s1.hdslb.com/bfs/static/blive/blfe-dynamic-web/static/img/background.bc725153.png$image
! 2022-03-14 https://www.geeksforgeeks.org
cp /usr/lib/systemd/system/bluetooth.service /etc/systemd/system/
sed -i -r 's/ExecStart=.+/& -E/' /etc/systemd/system/bluetooth.service
systemctl daemon-reload
systemctl restart bluetooth
#!/bin/bash
#######################################################################
# Author: GwenDragon, <https://labs.gwendragon.de/blog/>
# License: GPL
#######################################################################
# 2021-06-25 removed custom.css support
# commented custom.css shell commands
# users can now use vivaldi://experiments to change CSS in UI
/*
* Global Media Controls Panel
* Written by Tam710562
*/
(function () {
'use strict';
const gnoh = {
createElement: function (tagName, attribute, parent, inner, options) {
[Adblock Plus 2.0]
! Version: 202211180347
! Title: Maary's List
! 2022-03-04 https://www.ithome.com
||cmt.ithome.com/comment/$subdocument
! 2022-03-04 https://sspai.com
sspai.com###article-comment-box
// ==UserScript==
// @name Abema 区域限制
// @version 1.0.0
// @run-at document-end
// @namespace Violentmonkey Scripts
// @match https://abema.tv/*
// @grant none
// ==/UserScript==
Object.defineProperty(__CLIENT_REGION__, 'isAllowed', {
get: () => true