Skip to content

Instantly share code, notes, and snippets.

@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
@kato-mitsuki
kato-mitsuki / DMMTV_Lighthouse_result_1.json
Last active May 1, 2024 20:49
Lighthouse計測結果①
"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。これらのリソースがスコアに影響しないようにするためには、シークレット ウィンドウでこのページを監査してください。"
],
@jkaipr
jkaipr / foreground.js
Created December 21, 2021 10:03
Spyder - Chrome extension listening to page loading and user input events
// 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 });
}
@calliecameron
calliecameron / onyx-boox-handwriting-optimisation.md
Last active May 1, 2024 20:49
Onyx Boox handwriting optimisation in any app

Onyx Boox handwriting optimisation in any app

All credit to this thread for figuring out how to do this, I'm just documenting it more thoroughly.

Tested on Nova Air C with firmware 3.5 (2023-11-20).

Handwriting optimisation makes the pen usable in apps installed from the play store. By default it's only available for OneNote, Evernote and WPS -- they have a 'handwriting' tab in the optimisation settings, other apps don't -- but can be enabled for any app by editing the file /onyxconfig/eac_config as root.

Note: whenever you edit eac_config, you have to reboot the device for the changes to take effect. Just restarting the app isn't enough.