Skip to content

Instantly share code, notes, and snippets.

View iTunes PlayPause with Fading.applescript
property resolution : 10 (* Increase for smoother fades. Default: 10 *)
property delayIncr : 0.2 (* Decrease for faster fades. Default: 0.2 *)
tell application "iTunes"
set originalVol to sound volume
set volIncr to originalVol div resolution
if player state is not playing then
set sound volume to 0
play
@mirka
mirka / gist:1248592
Created Sep 28, 2011
Randomize/reset measurementUnit settings
View gist:1248592
#target indesign
var sp = app.scriptPreferences;
var vp = app.documents[0].isValid ?
document.viewPreferences : app.viewPreferences;
function randomizeSettings() {
var unitArray = [
MeasurementUnits.POINTS,
MeasurementUnits.PICAS,
@mirka
mirka / gist:1455488
Created Dec 10, 2011
New New Twitter - Show Usernames Only
View gist:1455488
.username s {
display: none;
}
.username b {
font-weight: bold;
font-size: 14px;
color: #333;
}
@mirka
mirka / gridDimensions.jsxinc
Created Mar 19, 2012
InDesign: フレームグリッドの文字数と行数をget/set
View gridDimensions.jsxinc
// Given no arguments, returns array [charsPerLine, linesPerColumn] of the
// text frame. To set the text frame grid dimensions to a different size,
// supply an argument in the same array format. Value of 0 will make no changes.
TextFrame.prototype.gridDimensions =
function gridDimensions(charLineArray /* optional */) {
var f = this;
var originalUnit = app.scriptPreferences.measurementUnit;
var g;
function frameIsVertical() {
View AutoDownloaderJP.user.js
// ==UserScript==
// @name AutoDownloader JP
// @description 規約同意ページ等を飛ばしてファイルを自動ダウンロード (対応サイト: Firestorage, 宅ふぁいる便, FilePost, GigaFile便, おくりん坊, データ便)
// @author mirka
// @include http://firestorage.jp/download/*
// @include http://firestorage.jp/index.cgi*
// @include http://xfs.jp/*
// @include https://www.filesend.to/filedn/*
// @include https://taku.filesend.to/*
// @include https://free.filesend.to/*
View TabelogSmokingAlert.user.js
// ==UserScript==
// @name Tabelog Smoking Alert
// @description 食べログの禁煙・喫煙情報を目立たせる
// @author mirka
// @include https://tabelog.com/*
// @namespace http://jaguchi.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js
// @grant GM_addStyle
// @version 1.3.1
// ==/UserScript==
View SpotifyLinksOniTunes.user.js
// ==UserScript==
// @name Spotify Links On iTunes
// @description Add a Spotify link and embedded player on iTunes album/artist pages
// @author mirka
// @include https://itunes.apple.com/*/artist/*
// @include https://itunes.apple.com/artist/*
// @include https://itunes.apple.com/*/album/*
// @include https://itunes.apple.com/album/*
// @namespace http://jaguchi.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
View JapanPostRedelivery.user.js
// ==UserScript==
// @name Japan Post Redelivery
// @description Fix usability issues on the Japan Post redelivery website
// @author mirka
// @include https://trackings.post.japanpost.jp/services/srv/search/direct*
// @include https://trackings.post.japanpost.jp/delivery/deli/*
// @namespace http://jaguchi.com
// @version 1.1
// ==/UserScript==
You can’t perform that action at this time.