This file contains hidden or 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 (()=>{ | |
| let text = null; | |
| try { | |
| text = document | |
| .querySelector("ytd-transcript-renderer") | |
| .__data | |
| .data | |
| .body | |
| .transcriptBodyRenderer | |
| .cueGroups |
This file contains hidden or 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
| // Copyright (C) 2018 by Things That Do Stuff, LLC - All rights reversed | |
| // http://www.unlicense.org/ (public domain) | |
| const gql = (templateStringParts: TemplateStringsArray, ...vars: any[]): string => | |
| templateStringParts.map((part, index) => (index in vars ? part + JSON.stringify(vars[index]) : part)).join(''); | |
| export const createPages: GatsbyCreatePages = async ({ graphql, boundActionCreators }) => { | |
| const query = gql` | |
| { | |
| site: contentfulSite(url: { eq: ${'thingsthatdostuff.com'} }) { |
This file contains hidden or 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
| package com.subtlegradient.android.thinpushclient; | |
| import java.io.File; | |
| import java.lang.reflect.Method; | |
| import android.annotation.TargetApi; | |
| import android.app.Activity; | |
| import android.content.BroadcastReceiver; | |
| import android.content.Context; | |
| import android.content.Intent; |
This file contains hidden or 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
| Windows Registry Editor Version 5.00 | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOS Utility] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\DPP] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\ZoomBrowser EX] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\PhotoStitch | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOS Capture] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Canon\EOSViewerUtility] | |
| [HKEY_LOCAL_MACHINE\SOFTWARE\Canon\ZoomBrowser EX\Install] |
This file contains hidden or 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
| [...$$('img')].map(img => { | |
| const imageFilename = img.getAttribute('src'); | |
| const [type, ...name] = img.parentNode.parentNode.parentNode.parentNode.nextSibling.nextSibling.textContent.trim().split('\n').map(string=>string.trim()).reverse(); | |
| return `cp '${imageFilename}' '${name.reverse().join(' ')}.${imageFilename.split('.').reverse()[0]}'`; | |
| }).join('\n') |
This file contains hidden or 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
| Cypress.Commands.add('waitForAllAPIs', waitForAllAPIs); | |
| let requestCount; | |
| beforeEach(() => { | |
| requestCount = 0; | |
| cy.server({ | |
| onRequest() { | |
| requestCount++; |
This file contains hidden or 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
| #!/usr/bin/env node --experimental-modules | |
| /* eslint-disable no-console */ | |
| import { execSync } from 'child_process'; | |
| process.env.ROOT_VIEW_PATH = `src/common/components/views/RootView.js`; | |
| const exec = script => { | |
| console.log(`$ ${script}`); |
This file contains hidden or 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
| [...document.querySelectorAll('td img')] | |
| .map((img) => [img, img.closest('td')]) | |
| .map(([img, td]) => [img, td.innerText || td.parentElement.nextElementSibling.cells[td.cellIndex].innerText]) | |
| .map(([img, text]) => [img.src, ...text.split(/\s+/).reverse()]) | |
| .map(([src, type, ...name]) => [type, name.reverse().join(' '), src]) |
This file contains hidden or 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: (() => { | |
| async function download(fileName, data) { | |
| const content = | |
| typeof data === "string" || data instanceof Blob | |
| ? data | |
| : JSON.stringify(data); | |
| const downloadURL = window.URL.createObjectURL( | |
| new Blob([content], { type: "application/json" }) | |
| ); | |
| const anchor = document.createElement("a"); |