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 115 播放页抽屉式关联文件 UI 增强 | |
| // @namespace https://local.115.ui.enhance/ | |
| // @version 0.2.0 | |
| // @description 将右侧关联文件改为覆盖式抽屉,保留官方播放器能力 | |
| // @match https://115.com/players/video/* | |
| // @run-at document-idle | |
| // @grant none | |
| // ==/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
| // ==UserScript== | |
| // @name Extract H5P Slide Links from eClass | |
| // @name:zh-CN eClass 提取 H5P 幻灯片链接 | |
| // @namespace LibertyBear Scripts | |
| // @match https://eclass.yorku.ca/mod/h5pactivity/view.php?id=* | |
| // @grant none | |
| // @version 1.1 | |
| // @author - | |
| // @description Extract H5P slide download links from eClass for PANF1900 Courses | |
| // @description:zh-CN 提取eClass上的H5P幻灯片下载链接并自动复制按钮(PANF1900) |
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
| for f in *; do [ -f "$f" ] && [[ ! "$f" =~ \.[^.]+$ ]] && echo "$f -> $f.$(file -b --mime-type "$f" | cut -d'/' -f2)"; done | |
| #!/bin/bash | |
| for f in *; do | |
| if [ -f "$f" ] && [[ ! "$f" =~ \.[^.]+$ ]]; then | |
| # Get the file type | |
| mime=$(file -b --mime-type "$f") | |
| # Map MIME types to extensions | |
| case "$mime" in |
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
| // 全局变量存储IP范围数据 | |
| let gIpRanges = []; | |
| let gIsInitialized = false; | |
| let gOriginalReload = null; // 存储原始reload函数 | |
| // 创建文件输入元素,允许用户选择IP2LOCATION CSV文件 | |
| function createFileInput() { | |
| const fileInput = document.createElement('input'); | |
| fileInput.type = 'file'; | |
| fileInput.id = 'ip2location-csv'; |
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
| // Function to export data to CSV | |
| function exportToCSV(data, filename) { | |
| const csvContent = data.map(e => e.join(",")).join("\n"); | |
| const blob = new Blob([csvContent], { type: 'text/csv;charset=utf-8;' }); | |
| const link = document.createElement("a"); | |
| const url = URL.createObjectURL(blob); | |
| link.setAttribute("href", url); | |
| link.setAttribute("download", filename); | |
| link.style.visibility = 'hidden'; | |
| document.body.appendChild(link); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #include <stdlib.h> | |
| #include <stdio.h> | |
| int main() { | |
| const int ROCK = 0; | |
| const int PAPER = 1; | |
| const int SCISSORS = 2; | |
| int seed; | |
| scanf("%d", &seed); |