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
const video = () => document.querySelector("video") | |
const codes = { | |
space: 32, | |
j: 74, | |
k: 75, | |
l: 76, | |
} | |
document.addEventListener("keydown", e => { |
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
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button | |
www.youtube.com##.ytp-fullerscreen-edu-chevron | |
www.youtube.com##.ytp-fullerscreen-edu-text | |
www.youtube.com##.ytp-button.ytp-fullerscreen-edu-button | |
www.youtube.com##.ytp-cards-button | |
www.youtube.com##.ytp-ce-element | |
www.youtube.com##.ytp-ce-element | |
www.youtube.com##.ytp-ce-element | |
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
const video = () => document.querySelector('video'); | |
document.querySelector('progress').style.opacity = 0.35; | |
const codes = { | |
space: 32, | |
j: 74, | |
k: 75, | |
l: 76, | |
}; |
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('.flash-warn').forEach(a => a.remove()) |
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
{ | |
"id": 37675163, | |
"channel": "airbnb", | |
"channel_id": 37675163, | |
"channel_id_secondary": null, | |
"channel_url": "https://www.airbnb.com/rooms/37675163", | |
"title": "\u2b50WASHINGTON Suite \u2b50Free Parking, Major Attractions", | |
"currency": "USD", | |
"can_price": true, | |
"categories_1": [], |
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
function total(){ | |
return [...document.querySelectorAll("td.text-right")].reduce((a,b) => { | |
return a + parseFloat( b.innerText.replace(/[,$]/g, "")) | |
}, 0) | |
} |
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
import fetch from "node-fetch" | |
// expected to return => {token: "", filledAccountData: {authMethod: "EMAIL_AND_PASSWORD", userId: ""}} | |
export async function login(email, password, deviceId) { | |
return await fetch("https://api.airbnb.com/v2/authentications?client_id=3092nxybyb0otqw18e8nh5nty&locale=en-GB¤cy=GBP", { | |
body: JSON.stringify({ | |
authenticationParams: { email: { email, password } }, | |
}), | |
headers: { | |
"Content-Type": "application/json; charset=UTF-8", |
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
fetch("https://www.airbnb.com/api/v2/calendar_rules/id?key=key&_intents=mys_update_calendar_rules&_format=use_miso_default", { | |
method: "PUT", | |
headers: { | |
accept: "application/json", | |
"accept-language": "en-US,en;q=0.9", | |
"content-type": "application/json", | |
'X-Airbnb-OAuth-Token': token | |
}, | |
referrer: "https://www.airbnb.com/manage-your-space/41040547/availability/trip-length", |
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
// follow the update min nights format. | |
method: 'PUT', | |
uri: `https://api.airbnb.com/v2/calendars/${id}/${date}`, | |
format: 'host_calendar', | |
body: { | |
daily_price: price, | |
demand_based_pricing_overridden: true, | |
availability: 'available' | |
}, | |
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
alias venv="python -m venv venv && . venv/bin/activate && pip install --upgrade pip setuptools > /dev/null" |