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
var r = [], t; | |
if (el && el.textRuns) { | |
t = el.textChars; | |
r = ["chars:", t.length,"words:", t.split(/\s+/).length]; | |
} | |
r.join(" "); |
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
// to access a file, create a new instance of the File class by passing in | |
// a standard OS-style path to the constructor. I've only tested this on | |
// Windows, but a standard path on OS X should work, too. | |
var f = new File("C:\\test.txt"); | |
// unlike the file references created by the Files object, these have some | |
// useful properties, like length, which is the file size in bytes |
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
var dom = fw.getDocumentDOM(), | |
currentLayerIndex = dom.currentLayerNum, | |
newLayerIndex; | |
dom.addNewLayer(null, false); | |
// currentLayerNum is set to the newly added layer | |
newLayerIndex = dom.currentLayerNum; | |
// put the new layer before the last layer. note that this won't work |
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
var dom = fw.getDocumentDOM(); | |
dom.addNewRectangle({ left: 0, top: 0, right: dom.width, bottom: dom.height }, 0); |
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
svg_path | |
= wsp* data:moveTo_drawTo_commandGroups? wsp* | |
{ | |
var result = []; | |
function flatten(a){ | |
for (var i=0,l=a.length;i<l;++i){ | |
var o=a[i]; | |
if (o.constructor==Array) flatten(o); | |
else if (o && o!=" ") result.push(o); | |
} |
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(() => { | |
var timer = null; | |
chrome.tabs.onUpdated.addListener(() => { | |
clearTimeout(timer); | |
timer = setTimeout(() => { | |
addListeners(); | |
}, 50); | |
}); | |
); |
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
#NoEnv ; | |
SetBatchLines, -1 ; Script will never sleep | |
ListLines Off ; Omits subsequently-executed lines from the history | |
#KeyHistory 0 ; Disable key history | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability | |
SetTitleMatchMode 2 ; | |
SetTitleMatchMode Fast ; | |
SetKeyDelay, -1, -1 ; | |
#SingleInstance force ; Skips the dialog box and replaces the old instance automatically |
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
#import <Cocoa/Cocoa.h> | |
// | |
// QSense.m | |
// QSqSense | |
// | |
// Created by Alcor on 11/22/04. | |
// Copyright 2004 Blacktree. All rights reserved. | |
// |
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
13:30:03.402 gsUtils.js:35 gsStorage 13:30:03 syncedSettings on init: {batteryCheck: false, discardAfterSuspend: false, discardInPlaceOfSuspend: false, gsAddContextMenu: true, gsDontSuspendActiveTabs: true, …}batteryCheck: falsediscardAfterSuspend: falsediscardInPlaceOfSuspend: falsegsAddContextMenu: truegsDontSuspendActiveTabs: truegsDontSuspendAudio: truegsDontSuspendForms: truegsDontSuspendPinned: truegsIgnoreCache: falsegsNoNag: falsegsTheme: "light"gsTimeToSuspend: "60"gsUnsuspendOnFocus: falsegsWhitelist: ""onlineCheck: falsescreenCapture: "0"screenCaptureForce: falsesuspendInPlaceOfDiscard: true__proto__: Object | |
13:30:03.605 gsUtils.js:35 gsSession 13:30:03 | |
------------------------------------------------ | |
Extension initialization started. isProbablyProfileRestart: false | |
------------------------------------------------ | |
13:30:03.606 gsUtils.js:35 gsSession 13:30:03 Increasing init timeout to 11mins | |
13:30:03.799 gsUtils.js:35 gsSession 13:30:03 sessionId: 146083 |
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
1063 "15:05:22" "response from tab" Object | |
15:05:22.441 gsUtils.js:35 1063 "15:05:22" "tab updated. " Object | |
15:05:22.441 gsUtils.js:35 1063 "15:05:22" "Setting tabFlag: unsuspendOnReloadUrl=null" | |
15:05:22.445 gsUtils.js:35 1063 "15:05:22" "tab updated. " Object | |
15:05:22.445 gsUtils.js:35 1063 "15:05:22" "Setting tabFlag: unsuspendOnReloadUrl=null" | |
15:05:22.446 gsUtils.js:35 1063 "15:05:22" "send message to tab" Object | |
15:05:22.498 gsUtils.js:35 1063 "15:05:22" "tab updated. " Object | |
15:05:22.498 gsUtils.js:35 1063 "15:05:22" "Setting tabFlag: unsuspendOnReloadUrl=null" | |
15:05:22.501 gsUtils.js:35 1063 "15:05:22" "tab updated. " Object | |
15:05:22.501 gsUtils.js:35 1063 "15:05:22" "Setting tabFlag: unsuspendOnReloadUrl=null" |