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
javascript:void((function($) | |
{ | |
var domain = 'example.com'; | |
var subdomains = ['www', 'dev']; | |
if (!jQuery || location.hostname.indexOf(domain) < 0) { | |
return false; | |
} | |
var row_height = 100 / subdomains.length; | |
var $rows = $([]); |
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
/* | |
* @param object callback | |
* @param object document context | |
* / | |
function load_jq(callback, document) | |
{ | |
if (window.jQuery) { | |
if (callback) { | |
callback(jQuery); | |
} |
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
javascript:(function() { | |
var usr = '000000', pwd = '000000', cde = '000000'; | |
var card; | |
if (card = $('cardPwd')) { | |
card.value = cde; | |
} else { | |
$('userId').value = usr; | |
$('fixedPwd').value = pwd; | |
} | |
$('loginForm').submit(); |
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
javascript:(function() { | |
var s = document.createElement('script'); | |
s.onload = function() { | |
jQuery.noConflict(); | |
if (window.console && window.console.log) { window.console.log('jQuery', jQuery.fn.jquery); } | |
}; | |
s.setAttribute('src', location.protocol + '//ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js'); | |
document.getElementsByTagName('head')[0].appendChild(s); | |
})(); |
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
#wrapper_header, | |
#adtop, | |
#topchapter, | |
#bottomchapter, | |
#adfooter, | |
#zoomer, | |
#wrapper_footer, | |
.zoomimg { | |
display: none; | |
} |
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
javascript:(function() { var x = document.createElement('style'); document.getElementsByTagName('head')[0].appendChild(x); var y = document.createElement('textarea'); y.setAttribute('style', 'position: fixed; right: 0; top: 0; z-index: 99999;'); y.addEventListener('keydown', function() { x.innerHTML = this.value; }); document.body.appendChild(y); })(); |
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() { | |
// Private | |
function addMethodEvent(options) { | |
var method = this[options.method]; | |
var event = (options.prefix ? options.prefix + '_' : '') + options.method; | |
function wrap() { | |
this.fireEvent(event + '_start', this, arguments); | |
this.fireEvent(event + '_end', this, arguments, | |
method.apply(this, arguments)); |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Column example</title> | |
<style type="text/css"> | |
.col-a { | |
float: left; | |
width: 100%; | |
margin-left: -200px; | |
} |
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
; Bind Ctrl+Win+Space to select the video window for toggling. | |
; If it's a browser window and the video player is Flash (it most commonly is), | |
; then the player itself needs to be focused by clicking on the player. | |
; If the player is not focused the page will likely just get | |
; scrolled down without play/pause being toggled. | |
; I've made a Chrome extension to focus the YouTube player automatically: http://bit.ly/1gPHwI8 | |
^#space:: WinGet, winid ,, A | |
; Bind Win+Space to send the Space keystroke to the selected window. | |
; This will only work if the player supports a Space hotkey for toggling play/pause. |
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 clone(obj, deep) { | |
if (!(obj instanceof Object)) { | |
return obj; | |
} | |
var descriptors = {}; | |
Object.getOwnPropertyNames(obj).forEach(function(name) { | |
var prop = Object.getOwnPropertyDescriptor(obj, name); |
OlderNewer