Some vanilla equivalents to jQuery methods.
jQuery:
| [{"regex": ["http://*youtube.com/watch*", "http://*.youtube.com/v/*", "https://*youtube.com/watch*", "https://*.youtube.com/v/*", "http://youtu.be/*", "http://*.youtube.com/user/*", "http://*.youtube.com/*#*/*", "http://m.youtube.com/watch*", "http://m.youtube.com/index*", "http://*.youtube.com/profile*", "http://*.youtube.com/view_play_list*", "http://*.youtube.com/playlist*"], "about": "YouTube is the world's most popular online video community, allowing millions of people to discover, watch and share originally-created videos. YouTube provides a forum for people to connect, inform, and inspire others across the globe and acts as a distribution platform for original content creators and advertisers large and small.", "displayname": "YouTube", "name": "youtube", "domain": "youtube.com", "subdomains": ["m.youtube.com"], "favicon": "http://c2548752.cdn.cloudfiles.rackspacecloud.com/youtube.ico", "type": "video"}, {"regex": ["http://*twitch.tv/*", "http://*justin.tv/*/b/*", "http://*justin.tv/*/w/*"], "about": |
| define(function(require) { | |
| 'use strict'; | |
| (function(window, undefined) { | |
| // Prepare our Variables | |
| var history = window.history, | |
| document = window.document, | |
| $ = require('jquery'); |
| alert('hello ' + document.location.href); |
| add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' ); | |
| function custom_override_checkout_fields( $fields ) { | |
| unset($fields['billing']['billing_first_name']); | |
| unset($fields['billing']['billing_last_name']); | |
| unset($fields['billing']['billing_company']); | |
| unset($fields['billing']['billing_address_1']); | |
| unset($fields['billing']['billing_address_2']); | |
| unset($fields['billing']['billing_city']); | |
| unset($fields['billing']['billing_postcode']); |
| $('.jp-volume-bar').mousedown(function() { | |
| var parentOffset = $(this).offset(), | |
| width = $(this).width(); | |
| $(window).mousemove(function(e) { | |
| var x = e.pageX - parentOffset.left, | |
| volume = x/width | |
| if (volume > 1) { | |
| $("#JPID").jPlayer("volume", 1); | |
| } else if (volume <= 0) { | |
| $("#JPID").jPlayer("mute"); |
| /** | |
| * Hide the addressbar on ios & android devices | |
| * https://gist.github.com/yckart/5609969 | |
| * | |
| * Based on the work from Nate Smith | |
| * @see https://gist.github.com/nateps/1172490 | |
| * | |
| * Copyright (c) 2013 Yannick Albert (http://yckart.com) | |
| * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php). | |
| * 2013/07/10 |
| $(function() { | |
| $(document).on('scrollstart', function() { | |
| console.log('scroll started') | |
| }) | |
| $(document).on('scrollend', function() { | |
| console.log('scroll ended') | |
| }) |
| <?php return array ( | |
| 'url' => 'https://xaviesteve.com/', | |
| 'content' => '<!doctype html><html>...</html>', | |
| 'cookies' => '__cfduid=d3fa669e1069e72c2e47d127ab9b8e11f1465390629', | |
| 'http_code' => 200, | |
| 'content_type' => 'text/html; charset=UTF-8', | |
| 'header_size' => 578, | |
| 'request_size' => 229, | |
| 'filetime' => -1, | |
| 'ssl_verify_result' => 0, |