-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Userscript:
The scroll-break-point.js userscript is designed to help users break out of infinite/doom scrolling and avoid doom scrolling. It works effectively in desktop environments where userscripts can be executed in browsers. However, there’s currently no equivalent solution for iOS users.
Proposed Improvement:
Port scroll-break-point.js to iOS by leveraging Scriptable, an iOS app that allows users to run JavaScript scripts on their devices. The script can be adapted to work in the context of mobile browsing or apps with infinite scroll functionality.
Tasks:
Analyze the existing functionality of scroll-break-point.js.
Identify the core features to implement in the iOS Scriptable version.
- Research if iOS Scriptable scripts can inject code into other third party mobile social media applications.
- Detect infinite scrolling behavior.
- Provide alerts or visual cues to interrupt doom scrolling.
- Allow users to configure scroll limits and behaviors.
- Adapt the codebase to work with Scriptable's APIs and iOS environment.
- Test the script in common use cases to ensure usability.
Implementation Details:
Something like this wrapping the existing logic within methods to utilize the web view of mobile browsing environments.
let url = args.plainTexts[0] || "https://example.com"; // Default URL or user input
let webView = new WebView();
await webView.loadURL(url);
let scrollBreakScript = `
//Logic for the scoll-break-point.js functionality
`;
await webView.evaluateJavaScript(scrollBreakScript, false);
webView.present();