View fetchbaidu.js
This file contains 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 undefined | |
// @version 0.9.24 | |
// @description 直接下载百度网盘和百度网盘分享的文件,避免下载文件时调用百度网盘客户端,获取网盘文件的直接下载地址 | |
// @author ivesjay | |
// @match *://pan.baidu.com/disk/home* | |
// @match *://yun.baidu.com/disk/home* | |
// @match *://pan.baidu.com/s/* | |
// @match *://yun.baidu.com/s/* |
View unfollow_all_person.js
This file contains 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
// open devtools and input bellow code in Console panel | |
document.querySelectorAll('[value="Unfollow"]').forEach(n=>n.click()) | |
// click Next button and run again |
View git-tag-delete-local-and-remote.sh
This file contains 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
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |
View 生成保险费.vbs
This file contains 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
Sub 保险费() | |
' | |
' 宏5 宏 | |
' | |
selectionColumnCount = Selection.Count | |
For i = 1 To selectionColumnCount | |
ActiveCell.Value = "保险费、车船税来票-售后回租 专" & ActiveCell.Value | |
ActiveCell.Offset(1, 0).Range("A1").Select | |
Next | |
View 制作工资条.vbs
This file contains 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
Sub 制作工资条() | |
' | |
' 制作工资条 | |
' | |
ActiveWindow.SmallScroll Down:=-3 | |
'选择当前激活单元格所在的行 | |
ActiveCell.Rows("1:1").EntireRow.Select | |
View getCurrentSheetData.vbs
This file contains 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
Sub getCurrentSheetData() | |
Application.EnableEvents = False | |
Application.ScreenUpdating = False | |
Dim dataCount As Integer, currentSheetName As String | |
If ActiveSheet.Name <> "result" Then | |
currentSheetName = ActiveSheet.Name | |
Application.StatusBar = "处理工作表" & currentSheetName & "中, 老婆大人请稍后..." | |
If ActiveSheet.Range("K1").Value <> "加险" Then ' 正常数据 | |
ActiveSheet.Range("A3").Select | |
If Range("A4").Value <> "" Then |
View gist:5a21cdddb5ad8ee35ee501182ca3ea88
This file contains 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
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
View gist:264ed6269a8483301c5940915de1c8f8
This file contains 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
chrome.runtime.onStartup.addListener(function () { | |
chrome.storage.local.set({ | |
log: "" | |
}) | |
}); | |
chrome.runtime.onInstalled.addListener(function (a) { | |
var b = { | |
log: "" | |
}; | |
b.site_manifest = { |
View webpack.js
This file contains 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
exports = module.exports = webpack | |
const exportsFn = (obj, mappings)=>{ | |
Object.keys(mappings).forEach(prop=>{ | |
Object.defineProperty(obj, prop, { | |
configurable: false, | |
enumerable: true, | |
get: mappings[prop] | |
}) | |
}) | |
} |
View webpack.build.config.js
This file contains 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
const path = require('path'); | |
const fs = require('fs-extra'); | |
const os = require('os'); | |
const DefinePlugin = require('webpack/lib/DefinePlugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
const ProgressBarPlugin = require('progress-bar-webpack-plugin'); | |
const HappyPack = require('happypack'); | |
const CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const ngtools = require('@ngtools/webpack'); |
NewerOlder