Skip to content

Instantly share code, notes, and snippets.

steam keys

  • Borderlands 2 Season Pass(RU)
  • Jagged Alliance - Back in Action
  • Jagged Alliance: Crossfire
  • Trine
  • Cities in Motion
  • Magicka
  • Magicka Vietnam
  • Painkiller: Black Edition
  • Deponia
(function(){
let sites = {
youtube: {
url: /www\.youtube\.com/,
hoge: function() {
Array.prototype.forEach.call(content.document.getElementsByTagName('link'), function(link){
if (/shortlink/.test(link.rel)) { let url = link.href; }
});
return url;
}
@ebith
ebith / add_twitter_option.js
Created June 17, 2013 23:39
direct_bookmark.jsにツイッター連携付きのはてなブックマークを行うオプションを追加する(要はてブ拡張)
liberator.registerObserver(
'enter',
function () {
commands.get('sbm').options.push([['-t', '-twitter'], liberator.modules.commands.OPTION_NOARG]);
libly.$U.around(
commands.get('sbm'),
'action',
function (next, [args]) {
if (args['-t']) {
@ebith
ebith / copy.js.diff
Created June 29, 2013 18:15
copy.jsでも頭使わなくて良くなるパッチ
diff --git copy.js copy.js
index 18b61f5..d37ef7b 100644
--- copy.js
+++ copy.js
@@ -139,9 +139,35 @@ copy_templates.forEach(function(template){
addUserMap(template.label, template.map);
});
+var copy_filter = liberator.globalVariables.copy_filter || {
+ youtube: {
diff -r 20ce96a7a44f common/content/base.js
--- a/common/content/base.js Thu May 30 23:32:20 2013 +0900
+++ b/common/content/base.js Mon Jul 01 11:50:38 2013 +0900
@@ -67,7 +67,7 @@
})();
if (isinstance(obj, [HTMLCollection, NodeList]))
return (node for (node of obj));
- if (obj instanceof NamedNodeMap)
+ if (obj instanceof MozNamedAttrMap)
return (function () {
@ebith
ebith / SPDY-indicator.js
Last active December 19, 2015 05:39
SPDY使ってたらステータスラインに⚡を表示するプラグイン
(function(){
e = document.createElement('label');
e.id = 'liberator-status-spdy';
e.style.fontWeight = 'bold'
document.getElementById('liberator-status').appendChild(e);
statusline.addField('spdy', 'The currently SPDY status', 'liberator-status-spdy', function (node, state) {
if (state) {
node.value = '\u26A1';
@ebith
ebith / iPhone5sInstalledPackages.md
Last active January 2, 2016 22:29
iPhone 5s, iOS 7.0.4

Installed packages

  • Action Menu
  • Action Menu Plus Pack
  • Activator
  • ActivityAction for Action Menu
  • afc2add
  • AlwaysClear
  • AppLinks
  • Ask Assistant
  • AskToCall
@ebith
ebith / steam.js
Created May 31, 2014 12:57
VimperatorプラグインなSteamクライアント
// Generated by CoffeeScript 1.7.1
(function() {
var apiKey, request, setup, steamId, subCommands;
apiKey = liberator.globalVariables.steam_api || 'E912B5192623C96289A8EA2322E501DB';
if (!liberator.globalVariables.steam_id) {
return liberator.echoerr('steam: need steam id');
} else {
steamId = liberator.globalVariables.steam_id;
@ebith
ebith / startup.ps1
Created August 29, 2014 00:11
5秒後に同階層以下のショートカットファイル(*.lnk)を起動するPowerShellスクリプト
Sleep 5
Set-Location (Split-Path ( & { $MyInvocation.ScriptName } ) -Parent)
Get-ChildItem -Recurse -include '*.lnk' -exclude 'startup.ps1.lnk' | ForEach-Object {
Invoke-Item $_.FullName
}
@ebith
ebith / bf4friends.coffee
Created September 12, 2014 12:49
Battlefield4のフレンドがゲームを開始したらHubotで通知する
# Description:
# Battlefield4のフレンドがゲームを開始したら通知する
#
# Dependencies:
# "request": "^2.42.0"
# "ws": "^0.4.32"
#
# Configuration:
# HUBOT_ORIGIN_EMAIL
# HUBOT_ORIGIN_PASS