Skip to content

Instantly share code, notes, and snippets.

var i = 0;
var num_of_items = 0;
var stop = false;
function startCheck(max)
{
i++;
//document.querySelectorAll('div.h-a-Kd.a-Hd-mb')[0];
var bottom = document.querySelectorAll('div.h-a-Hd-mb.a-Hd-mb')[0];
bottom.scrollIntoView();
@sullenel
sullenel / chrome.md
Created February 13, 2022 09:33
Chrome
  • chrome://discards/ - manage open tabs
@jsoverson
jsoverson / reddit-signup.js
Created December 3, 2018 17:46
Reddit signup script w/Puppeteer and 2Captcha
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');
@whiledoing
whiledoing / cVimrc
Last active May 1, 2024 20:52
[chrome-extension-cVimrc] #chrome
set nohud
map h J
map l K
map c x
map C X
set cncpcompletion
let barposition = "bottom"
set typelinkhints
set noautofocus
@hoangitk
hoangitk / Chrome_snippets.md
Created October 21, 2020 02:14
[Chrome snippets] #chrome #snippets

Chrome Snippets

List all urls

urls = []
$$('*').forEach(element => {
  urls.push(element.src)
  urls.push(element.href)
  urls.push(element.url)
}); console.log(...new Set(urls)) 
@ceth-x86
ceth-x86 / manifest.json
Created October 18, 2013 05:52
chrome : chrome.storage example
{
"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"
},
@lirongfei123
lirongfei123 / 忽略证书错误.md
Created February 11, 2019 05:51
chrome 相关 #chrome

--args --ignore-certificate-errors

@rl4debug
rl4debug / chrome-headless-cheatsheet.md
Last active May 1, 2024 20:52
[chrome headless] #chrome #headless

Để 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"
@luisdosreis
luisdosreis / chrome.notes
Created November 24, 2020 12:30
[chrome] chrome dev notes
# 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
@popdemtech
popdemtech / acim.json
Last active May 1, 2024 20:50
Open Source A Course in Miracles Workbook Lessons as JSON. Content public domain. License ABL.
[
{
"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