I hereby claim:
- I am xbb on github.
- I am xbb (https://keybase.io/xbb) on keybase.
- I have a public key ASDQg47vqNFwNV0BOjy4d8CzYACqoAKRE99davVVEoD4dAo
To claim this, I am signing this object:
if ( ! Modernizr.input.placeholder) { | |
var phId = 0; | |
$('[placeholder]').each(function(){ | |
var $input = $(this), | |
label = document.createElement('label'); | |
this.id = this.id || 'input-placeholder-' + (++phId); | |
label.innerHTML = $input.attr('placeholder'); | |
label.htmlFor = this.id; | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.hasClass('placeholder')) { | |
input.val('') | |
.removeClass('placeholder') | |
.attr('autocomplete', 'on'); | |
} | |
}).blur(function() { | |
var input = $(this); | |
if (input.val().length === 0) { |
autoload -U add-zsh-hook | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:*' actionformats \ | |
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f ' | |
zstyle ':vcs_info:*' formats \ | |
'%F{2}%s%F{7}:%F{2}(%F{1}%b%F{2})%f ' | |
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r' | |
zstyle ':vcs_info:*' enable git |
var Gscrape = function(domain) { | |
var domain = domain || 'com', | |
searchURL = 'http://www.google.' + domain + '/search?q=', | |
searchInProgress = false, | |
cache = { | |
error: '', | |
success: true, | |
pages: 0, | |
urls: {} | |
}; |
<?php | |
class AbstractLogger extends AbstractLoggerCore {} | |
class Address extends AddressCore {} | |
class AddressFormat extends AddressFormatCore {} | |
class AdminTab extends AdminTabCore {} | |
class Alias extends AliasCore {} | |
class Attachment extends AttachmentCore {} | |
class Attribute extends AttributeCore {} | |
class AttributeGroup extends AttributeGroupCore {} |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env sh | |
set -e | |
NAMES=xterm,xterm-256color,screen,screen-256color,tmux,tmux-256color | |
if [ "$(uname -s)" = "FreeBSD" ]; then | |
curl -o /tmp/termcap.src https://raw.githubusercontent.com/freebsd/freebsd-src/main/share/termcap/termcap | |
cap_mkdb -vf /usr/share/misc/termcap /tmp/termcap.src | |
rm /tmp/termcap.src | |
else |
// ==UserScript== | |
// @name TF Guitar Wisdom video speed control | |
// @description Injects a video speed controller in the embedded video frames at TF Guitar Wisdom, visible on mouse over, easily adaptable for other sites | |
// @version 1.1.0 | |
// @author xbb | |
// @match https://embed.vhx.tv/* | |
// @allFrames true | |
// ==/UserScript== | |
(() => { |
// ==UserScript== | |
// @name itch.io claim all button | |
// @version 0.2 | |
// @description claims all the items automatically in the download bundle pages, make sure to start from page 1 | |
// @author xbb | |
// @match https://itch.io/bundle/download/* | |
// @grant none | |
// ==/UserScript== | |
(() => { | |
const findBackward = (node, callback) => { |
The scripts deletes one item at a time, waiting for its node removal and 1 second.
It will wait for new items to load in the page, so there is no need to preload the whole list.
Actually, if you preload the whole list before, it will make things slower and worse because every delete request contains all your displayed item list…
Usage: