Skip to content

Instantly share code, notes, and snippets.

View runmaxde's full-sized avatar
Focusing

Max runmaxde

Focusing
  • Mannheim, Germany
View GitHub Profile
@runmaxde
runmaxde / outlook-grap-api-get-all-folders-and-ids.js
Last active February 14, 2024 15:16
outlook-grap-api-get-all-folders-and-ids.js
// Retrieve the token from the browser via https://developer.microsoft.com/en-us/graph/graph-explorer
// 1. Click "Sign in with Microsoft" and sign in with your account
// 2. Select a Outlook mailbox request, e.g. "GET /me/mailFolders"
// 3. Click Tab "Modify permissions", select "Mail.Read" and click "Modify permissions"
// 4. Click Tab "Access token" and copy the token
// 5. Paste the token into the const TOKEN below
const TOKEN = ""
// cleanup the graph response for /mailFolders request to only include the id, displayName and childFolderCount
@runmaxde
runmaxde / boilerplate.sh
Created October 19, 2023 19:58
Bash: Move to the script directory to be able to execute the script from anywhere
# -------------------------------------------------------------------------------------------------
# -- Move to the script directory (to be able to execute the script from anywhere)
# -------------------------------------------------------------------------------------------------
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
cd "$SCRIPT_DIR"
# do your stuff

Remove Paywall of Webpage with a Browser Bookmark

This simple JavaScript bookmark lets you bypass website paywalls by removing specific domains from the current page's URL. Whenever you encounter a paywalled page, click this bookmark, and it will instantly redirect you to the freely accessible content.

Usage:

  1. Create a New Bookmark: Right-click your browser's bookmark bar and select "Add Page" (or a similar option depending on your browser).
  2. Name Your Bookmark: Enter a name for the bookmark, such as "Remove Paywall."
  3. Paste the Code: In the URL/Location field, paste the following JavaScript code: