ShareShortcuts
Fazer fork de “Tilt Scroll”

Criou algo novo a partir deste atalho? Compartilhe como uma derivação: ela se torna um atalho seu, que você gerencia, e as duas páginas têm links entre si para que canibeanartist receba o crédito.

  1. 1Obtenha o atalho e altere-o no app Atalhos. Dê a ele um nome próprio.
  2. 2Compartilhe pelo app Atalhos e copie o link do iCloud.
  3. 3Volte aqui, cole o link e descreva o que mudou, por exemplo: “Adicionei uma etapa que usa a Apple Intelligence para personalizar o texto.”
Downloads
80K
Salvo
4
Ações
3
Categoria
Utilities
Versão
1.0
Idioma
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

Novidades

Versão 1.0

First release

Histórico de versões
1.0 7 de nov de 2018

First release

O que ele faz

3 ações
  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

Ver como código
Beta

Todas as ações deste atalho escritas em Cherri, uma linguagem de programação para o app Atalhos. Ótimo para aprender como ele funciona.

#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()
Abrir no Cherri Playground Descompilado com cherri 2.3.0 (GPL-2.0). Pode precisar de pequenos ajustes antes de compilar.

Avaliações e comentários

Escrever uma avaliação
–
de 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Ainda não há avaliações. Seja o primeiro a compartilhar o que você pensa!

Publicidade

Mais de canibeanartist

Ver tudo

Você também pode gostar

Ver tudo
Publicidade