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
| <script> | |
| var encrypt = function (i, d) { | |
| if (null == d || 0 >= d.length) return null; | |
| for (var a = "", b = 0; b < d.length; b++) a += d.charCodeAt(b).toString(); | |
| var b = Math.floor(a.length / 5), | |
| g = parseInt(a.charAt(b) + a.charAt(2 * b) + a.charAt(3 * b) + a.charAt(4 * b) + a.charAt(5 * b), 10), | |
| j = Math.ceil(d.length / 2), | |
| h = Math.pow(2, 31) - 1; | |
| if (2 > g) return null; | |
| for (var c = Math.round(1E9 * Math.random()) % 1E8, a = a + c; 10 < a.length;) a = (parseInt(a.substring(0, 10), 10) + parseInt(a.substring(10, a.length), 10)).toString(); |
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 百度网盘一键批量修改后缀-替换文件及文件夹名 | |
| // @namespace dupanBatchRename | |
| // @version 0.1.4 | |
| // @description 感谢wealding,修改自【百度网盘一键批量修改后缀&批量替换文件名】;增加了批量修改文件夹名的功能;百度网盘一键批量修改后缀,默认修改为MP4;批量替换文件名【说明:批量改后缀强制改所有后缀,批量替换文件名可以替换一些垃圾版权信息】 | |
| // @author ding(AT)gong.si - Modified By Moka | |
| // @match *://pan.baidu.com/disk/home* | |
| // @match *://yun.baidu.com/disk/home* | |
| // @icon https://pan.baidu.com/m-static/base/static/images/favicon.ico | |
| // @run-at document-end |
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
| #encoding = utf-8 | |
| import re | |
| import base64 | |
| from hashlib import md5, sha1 | |
| def sign(data): | |
| '''zza + 随机12-16个字符 + md5('CJBPACrRuNy7'+data) | |
| sign = 'zzaffffffffffff' + md5(b'CJBPACrRuNy7' + data.encode()).hexdigest() | |
| ''' |
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
| <script> | |
| // Crypto.MD5 | |
| function _doFinalize(hash, sigBytes) { | |
| var nBitsTotal = sigBytes * 8; | |
| var nBitsLeft = sigBytes * 8; | |
| var nBitsTotalH = nBitsTotal / 0x100000000 | 0; | |
| // Add padding | |
| hash[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); | |
| hash[(((nBitsLeft + 64) >>> 9) << 4) + 15] = ( |
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
| <script> | |
| // Crypto.MD5 | |
| function _doFinalize(hash, sigBytes) { | |
| var nBitsTotal = sigBytes * 8; | |
| var nBitsLeft = sigBytes * 8; | |
| var nBitsTotalH = nBitsTotal / 0x100000000 | 0; | |
| // Add padding | |
| hash[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32); | |
| hash[(((nBitsLeft + 64) >>> 9) << 4) + 15] = ( |
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 subprocess as sp | |
| import re | |
| accuracy = 3 #Starting desired accuracy is fine and builds at x1.5 per loop | |
| def getLoc(): | |
| pshellcomm = ['powershell'] | |
| pshellcomm.append('add-type -assemblyname system.device; '\ | |
| '$loc = new-object system.device.location.geocoordinatewatcher;'\ | |
| '$loc.start(); '\ |
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
| #encoding = utf-8 | |
| import re | |
| import base64 | |
| from hashlib import md5 | |
| headMap = [21, 4, 9, 26, 16, 20, 27, 30] | |
| middleMap = [212, 45, 80, 68, 195, 163, 163, 203, 157, 220, 254, 91, 204, 79, 104, 6] | |
| tailMap = [18, 11, 3, 2, 1, 7, 6, 25] | |
| def sign(data): |
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 百度网盘一键批量修改后缀-替换文件及文件夹名 | |
| // @namespace dupanBatchRename | |
| // @version 0.1.4 | |
| // @description 感谢wealding,修改自【百度网盘一键批量修改后缀&批量替换文件名】;增加了批量修改文件夹名的功能;百度网盘一键批量修改后缀,默认修改为MP4;批量替换文件名【说明:批量改后缀强制改所有后缀,批量替换文件名可以替换一些垃圾版权信息】 | |
| // @author ding(AT)gong.si - Modified By Moka | |
| // @match *://pan.baidu.com/disk/home* | |
| // @match *://yun.baidu.com/disk/home* | |
| // @icon https://pan.baidu.com/m-static/base/static/images/favicon.ico | |
| // @run-at document-end |
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
| @echo off | |
| setlocal enabledelayedexpansion | |
| set n=0 | |
| :run | |
| set /a n+=1 | |
| set /a x=!n! %% 2 | |
| if "!x!"=="1" ( |
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 copy(text){ | |
| const input = document.createElement('input'); | |
| input.setAttribute('readonly', 'readonly'); | |
| input.setAttribute('value', text); | |
| input.style = "position:absolute;opacity:0"; | |
| document.body.appendChild(input); | |
| input.select(); | |
| if (document.execCommand('copy')) { | |
| console.log('复制成功'); | |
| } |
NewerOlder