ShareShortcuts
„Tilt Scroll“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit canibeanartist die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
80K
Gesichert
4
Aktionen
3
Kategorie
Utilities
Version
1.0
Sprache
EN

# Tilt Scroll

Share a web page from Safari to this Shortcut and it will allow you to tilt your device towards you or away from you to scroll up and down within the viewport.

Most iPhones shouldn't have a problem. Glitchy on my iPad Air.

With this initial release, refresh the page to stop the script.

#### TODO

- Add function to stop the script

- Refine variable speed

Neue Funktionen

Version 1.0

First release

Versionsverlauf
1.0 7. Nov 2018

First release

Was er macht

3 Aktionen
  1. Comment
    This is an initial release. Only Safari is supported through the Shortcut. /u/dialup_ on reddit. @canibeanartist on RoutineHub, Instagram, Snapchat, Twitter.
  2. Run JavaScript on Web Page
  3. Stop This Shortcut

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/web'
#define color blue
#define glyph moveArrow

/*
This is an initial release. Only Safari is supported through the Shortcut.

/u/dialup_ on reddit.
@canibeanartist on RoutineHub, Instagram, Snapchat, Twitter.
*/
runJavaScriptOnWebpage("const handleOrientation = event => {\nconst x = event.beta;\n\n    if (x < 37 && x > 23) return;\n    \n    if (x > 37 && x <= 45) {\n        window.scrollBy(0, 1);\n    } else if (x > 45 && x <= 50) {\n        window.scrollBy(0, 2);\n    } else if (x > 50) {\n        window.scrollBy(0, 4);\n    } else {\n        window.scrollBy(0, -2);\n    }\n};\n\nwindow.addEventListener(\"deviceorientation\", handleOrientation);\n\ncompletion();")
stop()
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von canibeanartist

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung