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
// @example getParentHanders($('#hogehoge')) | |
function getParentHandlers(element, result){ | |
if(!element) return result; | |
element = $(element)[0]; | |
result = result || []; | |
var handlers = $._data(element, 'events'); | |
if(handlers) result.push({element: element, handlers: handlers}); | |
return getParentHandlers(element.parentElement, result); | |
} |
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 SumCommitLines | |
// @namespace jp.tkrkt | |
// @include https://bitbucket.org/**/commits/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var container = document.getElementById('commit-files-summary'); |
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 gist link | |
// @namespace https://gist.github.com/tkrkt | |
// @description Add Gist link on profile page | |
// @include https://github.com/* | |
// @exclude https://github.com/*/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== |
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
function getPropertyDescriptor(obj, key, path) { | |
path = path || []; | |
path.push(obj); | |
if (obj.hasOwnProperty(key)) { | |
var descriptor = Object.getOwnPropertyDescriptor(obj, key); | |
descriptor.path = path; | |
descriptor.owner = obj; | |
return descriptor; | |
} else if (key in obj){ | |
return getPropertyDescriptor(obj.__proto__, key, path); |
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
#!/bin/sh | |
json=`curl -s "https://api.trello.com/1/lists/[list-id]]/cards?key=[key]&token=[token]"` | |
echo ${json} | /usr/local/bin/jq -r '"ToDo: " + .[0].name' | |
echo '---' | |
echo ${json} | /usr/local/bin/jq -r '.[].name' |
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 TrelloCardSelector | |
// @namespace jp.tkrkt | |
// @description フォーカスしてない時でもキーボードでカードを選択 | |
// @include https://trello.com/b/*/* | |
// @version 1.1 | |
// @grant none | |
// ==/UserScript== | |
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 MyGists | |
// @namespace jp.tkrkt | |
// @description Add MyGists Button on Gist | |
// @include https://gist.github.com/* | |
// @version 3 | |
// @grant none | |
// ==/UserScript== | |
var meta = document.querySelector('meta[name=user-login]'); |
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 [Feedly] Sort by engagement | |
// @namespace https://gist.github.com/tkrkt | |
// @description Add "Sort by engagement" button to header | |
// @include https://feedly.com/* | |
// @version 8 | |
// @grant none | |
// ==/UserScript== | |
function watch(callback) { |
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 Qiita Stock Ranking Link | |
// @description Add "Stock Ranking" link to Qiita's tags page | |
// @namespace https://gist.github.com/tkrkt | |
// @include http://qiita.com/tags/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
const tag = document.querySelector('h1.tagShowHeader_name').textContent; |
OlderNewer