Skip to content

Instantly share code, notes, and snippets.

// ==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==
// ==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
// ==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==
// ==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/*
@mirka
mirka / gridDimensions.jsxinc
Created March 19, 2012 16:15
InDesign: フレームグリッドの文字数と行数をget/set
// 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() {
@mirka
mirka / gist:1455488
Created December 10, 2011 16:16
New New Twitter - Show Usernames Only
.username s {
display: none;
}
.username b {
font-weight: bold;
font-size: 14px;
color: #333;
}
@mirka
mirka / gist:1248592
Created September 28, 2011 17:33
Randomize/reset measurementUnit settings
#target indesign
var sp = app.scriptPreferences;
var vp = app.documents[0].isValid ?
document.viewPreferences : app.viewPreferences;
function randomizeSettings() {
var unitArray = [
MeasurementUnits.POINTS,
MeasurementUnits.PICAS,
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