urls = []
$$('*').forEach(element => {
urls.push(element.src)
urls.push(element.href)
urls.push(element.url)
}); console.log(...new Set(urls))
Discover gists
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
const puppeteer = require('puppeteer'); | |
const request = require('request-promise-native'); | |
const poll = require('promise-poller').default; | |
const siteDetails = { | |
sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC', | |
pageurl: 'https://old.reddit.com/login' | |
} | |
const getUsername = require('./get-username'); |
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
set nohud | |
map h J | |
map l K | |
map c x | |
map C X | |
set cncpcompletion | |
let barposition = "bottom" | |
set typelinkhints | |
set noautofocus |
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
{ | |
"manifest_version" : 2, | |
"name": "Protein Tracker", | |
"description": "This is my second Chrome extension.", | |
"version": "1.0", | |
"browser_action": { | |
"default_icon": "icon.png", | |
"default_popup": "popup.html" | |
}, |
--args --ignore-certificate-errors
Để start chrome headless trên ubuntu
# this script will start chrome headless that hold state of your real browser (cookie, session...)
# note that user-data-dir "/home/debug/.config/google-chrome/Default" is wrong (remove /Default)
/opt/google/chrome/chrome --headless \
--remote-debugging-port=9222 \
--user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36" \
--user-data-dir="/home/debug/.config/google-chrome"
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
# Open Chrome | |
open -n -a /Applications/Google\ Chrome.app "http://www.lvh.me:8080/apps/wfm" --args --user-data-dir="/var/tmp/Chrome-dev" --disable-web-security |
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
[ | |
{ | |
"slug": "introduction-1", | |
"title": "Introduction to Part 1", | |
"section_type": "introduction", | |
"number": "1", | |
"sort_order": 0, | |
"content": "<p>A theoretical foundation such as the <i>A Course in Miracles</i> text is necessary as a background to make these exercises meaningful, yet it is the exercises which will make the goal possible. An untrained mind can accomplish nothing. It is the purpose of these exercises to train the mind to think along the lines which the course sets forth.</p>\n<p>The exercises are very simple. They do not require more than a few minutes, and it does not matter where or when you do them. They need no preparation. They are numbered, running from 1 to 365. The training period is one year. Do not undertake more than one exercise a day.</p>\n<p>The purpose of these exercises is to train the mind to a different perception of everything in the world. The workbook is divided into two sections, the first dealing with the undoing of what you see now and the second |
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
"lighthouseVersion": "11.0.0", | |
"requestedUrl": "https://tv.dmm.com/vod/", | |
"mainDocumentUrl": "https://tv.dmm.com/vod/", | |
"finalDisplayedUrl": "https://tv.dmm.com/vod/", | |
"finalUrl": "https://tv.dmm.com/vod/", | |
"fetchTime": "2023-11-07T07:49:09.488Z", | |
"gatherMode": "navigation", | |
"runWarnings": [ | |
"次の場所に保存されているデータが読み込みパフォーマンスに影響を与えている可能性があります: Web SQL, IndexedDB。これらのリソースがスコアに影響しないようにするためには、シークレット ウィンドウでこのページを監査してください。" | |
], |
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
// This script gets injected into any opened page | |
// whose URL matches the pattern defined in the manifest | |
// (see "content_script" key). | |
// Several foreground scripts can be declared | |
// and injected into the same or different pages. | |
const sendMessageToBackground = (message) => { | |
chrome.runtime.sendMessage({ message }); | |
} |
NewerOlder