Skip to content

Instantly share code, notes, and snippets.

@958
958 / everything-search-dialog.js
Last active April 4, 2024 03:07
tablacus explorer Search for everything in the input dialog
InputDialog("Everything", "", async function (r) {
if ("string" === typeof r && s != r) {
await Addons.Everything.Search(r);
}
});
@958
958 / prev-tabgroup.js
Created March 28, 2024 11:03
tablacus explorer select previous tabgroup
let n = await te.Data.Tabgroups.Click - 1;
const nLen = await GetLength(await te.Data.Tabgroups.Data);
if (n < 1) {
n = nLen;
}
if (n >= nLen + 1) {
n = 1;
}
Addons.Tabgroups.Change(n);
@958
958 / next-tabgroup.js
Created March 28, 2024 11:03
tablacus explorer select next tabgroup
let n = await te.Data.Tabgroups.Click + 1;
const nLen = await GetLength(await te.Data.Tabgroups.Data);
if (n < 1) {
n = nLen;
}
if (n >= nLen + 1) {
n = 1;
}
Addons.Tabgroups.Change(n);
@958
958 / popup-tabgroup.js
Created March 28, 2024 11:01
tablacus explorer popup tabgroup menu
const tabs = [];
const len = await GetLength(await te.Data.Tabgroups.Data);
for (let i = 0; i < len; i++) {
const name = await te.Data.Tabgroups.Data[i].Name;
tabs.push({ index: i, name: name});
}
let hMenu = await api.CreatePopupMenu();
for (let i = tabs.length; i--;) {
let uFlags = MF_STRING;
if ((await te.Data.Tabgroups.Click - 1) == i) {
@958
958 / mstranslator.ks.js
Last active February 26, 2024 07:26
[keysnail]MSTranslator
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>MSTranslator</name>
<description>Microsoft Translator with KeySnail</description>
<updateURL>https://gist.github.com/958/1450594/raw/mstranslator.ks.js</updateURL>
<author>958</author>
<version>0.0.2</version>
<license>MIT</license>
@958
958 / click_to_share.slex.js
Created February 28, 2012 09:46
[Sleipnir Mobile for Android]Click to share extension
// ==UserScript==
// @name Click to share
// @author @958
// @description Share the link destination when a link is clicked.
// @description When you click the icon at the top left of the page, will be in shared mode.
// @description:ja リンクをクリックすると共有する Click on share モードを提供します。
// @description:ja 画面左上のアイコンをクリックすると、モードを切り替えます。
// @version 0.2
// @history 0.1 Initial version.
// @history 0.2 Added tabindex attribute to icon.
@958
958 / launcher.ks.js
Last active February 26, 2024 07:26
[keysnail]launcher plugin
// Info
var PLUGIN_INFO =
<KeySnailPlugin>
<name>launcher</name>
<description>Application launcher</description>
<description lang="ja">アプリケーションを起動</description>
<updateURL>https://gist.github.com/958/3608000/raw/launcher.ks.js</updateURL>
<author>958</author>
<version>0.0.2</version>
@958
958 / tabgroup.ks.js
Last active February 26, 2024 07:26
[keysnail]Tabgroup Controller
// Info
var PLUGIN_INFO =
<KeySnailPlugin>
<name>Tabgroup Controller</name>
<description>Manipulate Tabgroup</description>
<description lang="ja">Tabgroup を操作</description>
<updateURL>https://gist.github.com/958/3630309/raw/tabgroup.ks.js</updateURL>
<author>958</author>
<version>0.0.2</version>
@958
958 / gist:6182793
Last active February 26, 2024 07:26
--- old/components/tombfix.js
+++ new/components/tombfix.js
@@ -314,13 +314,22 @@
if(greasemonkey){
greasemonkey = greasemonkey.getService().wrappedJSObject;
- env.addBefore(greasemonkey, 'evalInSandbox', function(){
- for(var i=0, len=arguments.length ; i<len ; i++){
- var arg = arguments[i];
- if(typeof(arg) == 'object'){
@958
958 / redmine.ks.js
Last active February 26, 2024 07:26
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>RedmineSnail</name>
<description>Redmine client</description>
<updateURL>https://gist.github.com/958/6820041/raw/redmine.ks.js</updateURL>
<author>958</author>
<version>0.0.1</version>
<license>MIT</license>