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
| <?php | |
| /* | |
| Plugin Name: login yourls password yourls | |
| Description: Just as the name says | |
| Version: 0.1 | |
| Author: Ozh | |
| */ | |
| // No direct call | |
| if( !defined( 'YOURLS_ABSPATH' ) ) die(); |
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
| $("body").append("<pre></pre>").text($.map($(".file a:has(.glyphicon-download)").toArray(), function(elem) { return elem.href; }).join("\n")) |
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
| var PKT_D = "getpocket.com"; | |
| var PKT_STATUS = "3"; | |
| try { | |
| if (ISRIL_TEST) {} | |
| } catch (e) { | |
| ISRIL_TEST = false | |
| } | |
| var PKT_BM_OVERLAY = function (e) { | |
| this.inited = false; | |
| this.saveTagsCallback = e.saveTagsCallback |
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 Bilibili 收藏夹备份 | |
| // @namespace https://gist.github.com/colt365/ | |
| // @description 将 Bilibili 收藏夹备份为 JSON | |
| // @match https://space.bilibili.com/* | |
| // @version 1.0.1.20230714 | |
| // @grant none | |
| // ==/UserScript== | |
| let box, favData, run = false; |
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 time | |
| import requests | |
| import json | |
| class DownloadStationAPI(): | |
| def __init__(self, host=None, username=None, password=None): | |
| self.name = 'DownloadStation' |
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
| console.log($('.filelist .file-name .ftype:contains(video)').length + ' files to convert'); | |
| var cpt=0; | |
| $('.filelist .file-name .ftype:contains(video)').each(function(){ | |
| var row = $(this).prev(); | |
| var id = row.attr('href').substring(row.attr('href').lastIndexOf('/')+1); | |
| $.post('/v2/files/'+id+'/mp4',function(data){ | |
| console.log(data.status); | |
| if(data.status=="OK") cpt++; | |
| }); | |
| }); |