-
Open a browser
# start an instance of firefox with selenium-webdriver $browser_type = 'firefox' $host = 'http://localhost:4444/wd/hub'
$capabilities = array(\WebDriverCapabilityType::BROWSER_NAME => $browser_type);
| /* bling.js */ | |
| window.$ = document.querySelectorAll.bind(document) | |
| Node.prototype.on = window.on = function (name, fn) { | |
| this.addEventListener(name, fn) | |
| } | |
| NodeList.prototype.__proto__ = Array.prototype |
| ko.bindingHandlers.dropzone = { | |
| init: function(element, valueAccessor) | |
| { | |
| var value = ko.unwrap(valueAccessor()); | |
| var options = { | |
| maxFileSize: 15, | |
| createImageThumbnails: false, | |
| }; |
| // ==UserScript== | |
| // @name gist-editor-resize-userscript | |
| // @namespace https://gist.github.com/ | |
| // @version 0.1 | |
| // @description Automatically resize the gist editor for easier editing. | |
| // @match http*://gist.github.com/* | |
| // @copyright 2013+ Joel Day - blog.dayjo.org | |
| // ==/UserScript== | |
| var textareas = document.querySelectorAll('textarea.file_contents'); |