This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Amazon ASIN Rank UI (SellerSprite) | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.6 | |
| // @description 通过自动模拟点击和页面跳转,利用卖家精灵(SellerSprite) 插件渲染出的数据,批量抓取指定 ASIN 列表的实时大类和小类排名,并导出为标准的 Excel/表格格式。 | |
| // @match *://www.amazon.co.jp/* | |
| // @grant GM_setClipboard | |
| // @grant GM_notification | |
| // @run-at document-end | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import random | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from matplotlib.colors import ListedColormap | |
| import matplotlib.patches as patches | |
| import os | |
| from matplotlib import font_manager | |
| from matplotlib.path import Path | |
| # 尝试设置中文字体 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //本脚本参考了 https://oddpaw.com/2023/07/decrypt-anki-deck/ | |
| //非常感谢原作者的贡献 | |
| //本脚本仅供个人使用,请勿将获取他人的anki卡组解密后再次售卖 | |
| //本脚本适用于anki卡片模板里有 decryptBack() 的js函数的anki卡片,本质:使用了 https://www.jsjiami.com/jsjiami.v6.html 进行加密 | |
| //使用方法:在anki里使用chrome inspector打断点获得加密使用的key,在本脚本开头填入key,在本脚本末尾填入输入输出的txt路径 | |
| //保存本脚本为 anki-decryption.js 在终端内导航到脚本所在位置并输入 node ./anki-decryption.js | |
| //如何打断点:(如果有时间再更新) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Add Floating Compose Button on Elk | |
| // @namespace https://elk.zone | |
| // @version 0.1 | |
| // @description A personal use case. | |
| // @match https://elk.zone/* | |
| // @license MIT | |
| // @require http://code.jquery.com/jquery-latest.js | |
| // @require https://greasyfork.org/scripts/47911-font-awesome-all-js/code/Font-awesome%20AllJs.js?version=275337 | |
| // @grant GM_addStyle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| while true; | |
| do if ping -c 1 baidu.com >/dev/null 2>&1 ; then | |
| sleep 30 | |
| else | |
| srun-cli -u <USERNAME> -k <PASSWORD> | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en-us"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| </head> | |
| <body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!bin/zsh | |
| # I'll just using zsh as my shell, could be replaced with bash. | |
| cd ~/Downloads/zhaokao # Move to directory of operation | |
| curl -O http://www.zhaokao.net/gzfwlist\?colid\=all # Download the page with cURL, only main page. | |
| mv gzfwlist?colid=all 2.html # Rename | |
| diff 1.html 2.html >> diff.txt # Using built-in diff tool to compare | |
| if [ -s diff.txt ] ; then # [ -s xxx ] meant to validate if the diff.txt is empty(which meant there's no changes), if it's not empty, then return true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| import random | |
| Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
| headers = { | |
| 'Cookie': "Replace Me With REAL COOKIE" , | |
| 'Pragma': 'no-cache', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #bilibili-av-bv-converter | |
| #Date: March 29,2020 | |
| #Language: AppleScript | |
| #License: WTFPL licence | |
| #Algorithm Implementations | |
| #Global Varibles | |
| global S | |
| global table | |
| global xor |
NewerOlder