And what if we recall the existence of the app “Quick Commands” in iOS?
One of these allows you to set certain options for automatically scrolling a particularly long web page in Safari. Let’s say you’re browsing Wikipedia or reading a long news article; this command will save you from having to constantly scroll down the page with your finger to continue reading. All you have to do is manually launch the shortcut in Safari.
Autoscroll
Safari Auto Scroll – will help you set up auto-scrolling of pages in the browser so that you do not have to constantly scroll through long texts manually.
– Download and install.
– Open long text.
– Call the “Share” menu and select the command itself
You will be prompted to select an auto scroll speed. You can choose any number of presets, such as 5, 10, 20, 50, 75 or 100 milliseconds. For example, if you select 20 milliseconds, this would mean that the page scrolls by one pixel every 20 milliseconds. You can also use your own value.
Don’t know which option to choose? Start with 50 milliseconds – it’s not too fast and not too slow. If it’s inconvenient, just play around with the values to find the right speed.
Confidentiality
Here, questions may arise about why the application needs different accesses. It’s simple: the team needs to inject JavaScript code (which you can see below) into the web page to perform auto-scrolling.
JavaScript used to set pixels:
(function(host){
var interval = ms, increment = px, pairs = window.location.search.substring(1).split("&");
for(var i = 0; i < pairs.length; i++){
var pair = pairs[i].split("="),
attribute = pair[0],
value = parseInt(pair[1]);
switch(attribute){
case "interval": interval = value;
case "increment": increment = value;
}
}
return {
start: function(){
host.scrollBy(0, increment);
host.setTimeout(arguments.callee, interval)
}
};
}(this)).start();
completion(true);
JavaScript used to set the milliseconds:
(function(host){
var interval = ms, increment = 1, pairs = window.location.search.substring(1).split("&");
for(var i = 0; i < pairs.length; i++){
var pair = pairs[i].split("="),
attribute = pair[0],
value = parseInt(pair[1]);
switch(attribute){
case "interval": interval = value;
case "increment": increment = value;
}
}
return {
start: function(){
host.scrollBy(0, increment);
host.setTimeout(arguments.callee, interval)
}
};
}(this)).start();
completion(true);
Updates
This command has an automatic update feature built into it, so it will automatically notify you when a new version is released. Or, you can request an update manually directly from the Shortcuts app.
disadvantages
Unfortunately, the command doesn’t work in Safari’s Reading View, so if you prefer to read long articles this way, you won’t be able to.
To stop auto-scrolling, just refresh the page or go back to the previous one – not the most elegant way.
More on the topic:
The post How to set up automatic web page scrolling in Safari on iPhone appeared first on Gamingsym.