**Note: ** Remember to URL-Encode the parameters: https://www.urlencoder.org/
- Share Article:
https://www.linkedin.com/shareArticle?mini=true&url=<URL>&title=<TITLE>&source=<SOURCE_URL>&summary=<SUMMARY>
Examples:
| javascript:void(open('https://archive.is/?url=%27+location.href)); |
| # Einfacher PowerShell Webserver | |
| $listener = New-Object System.Net.HttpListener | |
| $listener.Prefixes.Add("http://+:8000/") # Port 8000 | |
| $listener.Start() | |
| Write-Host "Listening on port 8000..." | |
| while ($listener.IsListening) { | |
| $context = $listener.GetContext() | |
| $response = $context.Response |
| [ | |
| { | |
| "name": "Alice", | |
| "message": "Congratulations on your retirement! Wishing you a journey of happiness and adventure in the years ahead." | |
| }, | |
| { | |
| "name": "Bob", | |
| "message": "Happy Retirement! It's time to enjoy your life to the fullest. Thank you for your years of hard work and dedication." | |
| }, | |
| { |
| Der Fehler "Failed to execute `readText` on `Clipboard`: Document is not focused" tritt auf, wenn das Bookmarklet versucht, auf die Zwischenablage zuzugreifen, während das Dokument (d.h. die Browser-Seite) nicht im Vordergrund ist. Diese Sicherheitsvorkehrung stellt sicher, dass ein Skript nur dann auf die Zwischenablage zugreifen kann, wenn der Nutzer mit der Seite interagiert. | |
| Um das Bookmarklet erfolgreich zu verwenden, müssen wir sicherstellen, dass der Browser im Vordergrund ist, und wir können eine alternative Eingabemethode als Fallback einbauen, falls der Zugriff auf die Zwischenablage nicht erlaubt ist. | |
| Hier ist die aktualisierte Version des Bookmarklets, die den Nutzer auffordert, den Text manuell einzugeben, wenn der direkte Zugriff auf die Zwischenablage fehlschlägt: | |
| ```javascript | |
| javascript:(async()=>{const githubToken='DEIN_GITHUB_TOKEN_HIER';const gistDescription='Gist erstellt über Bookmarklet';try{let clipboardText='';try{clipboardText=await navigator.clipboard.readText();}catch(e){clipboa |
| # ---------------------------------------------------------------------- | |
| # | Compression | | |
| # ---------------------------------------------------------------------- | |
| <IfModule mod_deflate.c> | |
| # Force compression for mangled `Accept-Encoding` request headers | |
| # https://developer.yahoo.com/blogs/ydn/pushing-beyond-gzipping-25601.html | |
| <IfModule mod_setenvif.c> |
A Pen by uli schaeffler on CodePen.
| <div class="main-content"> | |
| <h2>Hauptinhalts-Titel</h2> | |
| <p>Das ist der erste Absatz.</p> | |
| <div class="sidebar"> | |
| <h2>Sidebar Titel</h2> | |
| <p>Inhalt der Sidebar.</p> | |
| </div> | |
| <p>Das ist der zweite Absatz im Hauptinhalt.</p> | |
| </div> |
| <h2 class="main-heading" id="specific-heading">Dies ist eine Überschrift</h2> |