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
{ | |
"status": 1, | |
"message": "$相关说明$(status: 这个在将来或许很重要)...(version: 若有新功能加入,靠这个版本号识别)...(addSearchItems: 允许更新时,添加新的搜索到你的搜索列表)...(modifySearchItems: 允许更新时,修改你的搜索列表中的项目)...(connectToTheServer: 允许连接到我的服务器(更新列表,将图标转换为base64等),将来更新使用或永不使用)...(closeBtn: 设置页面右上角的“关闭”圆圈是否显示。true显示,false隐藏)...(newtab: 新标签页打开。0为默认设置,1为新标签页打开)...(foldlist: 折叠当前搜索分类列表。true为折叠,false为展开。)...(settingOpacity: 设置按钮的透明度,值为0-1之间的数,0为透明,1为完全显示,中间值半透明。注:-1为直接关闭按钮,关闭之前请确定自己知道如何再次打开它)...(debug: debug模式,开启后,控制台会输出一些信息,“关闭并保存”按钮将不会在刷新页面)...(fixedTop: 将搜索栏固定到顶端。 true开启,false关闭)...(fixedTopUpward: 固定顶端后,搜索栏下拉不会出现,只有上拉时才出现。 true开启,false关闭)...(baiduOffset: 在百度页面鼠标划过的菜单会出现位移,若有使用其他的style样式,可以修改这个来修复二级菜单的偏移)...(getIcon: 自己添加搜索后获取图标的方式。0为自动,能连接谷歌的情况下用谷歌获取,无法连接的情况下,域名加favicon.ico获取;1为域名加favicon获取,2为使用谷歌获取,3为使用dnspot的服务获取(不建议使用)。或者添加网址,关键字使用%s代替,未测试)...(allOpen:一键搜索,点击相关分类后,打开该分类下的所有搜索)...(center:是否居中显示,主要是为了兼容脚本 ac 百度 : 0 不居中,强制在左。 1, 强制居中 。 2,自动判断)...(engineDetails: 第一个值为分类列表标题名称,第二个值与enginelist相关联,必须匹配,第三个值true为显示列表,false为禁用列表。排列顺序与跳转栏上的显示顺序相同,可以用它将 |
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 https://github.com/yandd | |
// @version 1.1.0 | |
// @icon https://www.caiyunapp.com/favicon.ico | |
// @description 彩云小译 提供中英对照翻译 | |
// @author yandd <https://github.com/yandd> | |
// @supportURL https://github.com/yandd | |
// @match *://*/* | |
// @run-at document-end |
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
BeforeAll { | |
$PSSR = $PSScriptRoot | |
$TestGitRepoName = 'repo' | |
function ClearGitRepo { | |
Set-Location $PSSR | |
if ($TestGitRepoName | Test-Path) { | |
Remove-Item $TestGitRepoName -Recurse -Force | |
} | |
} | |
function InitGitRepo { |
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
[cmdletbinding()] | |
Param ( | |
[string] | |
$Title = 'Title', | |
[string] | |
$Text = 'Text', | |
[scriptblock] | |
$OnClicked = { | |
'Pressed!' | Write-Host -ForegroundColor 'Blue' | |
} |
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
[cmdletbinding()] | |
Param ( | |
[string] | |
$Title = 'Title', | |
[string] | |
$Text = 'Text', | |
[scriptblock] | |
$OnClicked = { | |
'Pressed!' | Write-Host -ForegroundColor 'Blue' | |
} |