ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
So far as I am aware, the only reasonably-reliable way to do that is with <a> anchor-tags within the HTML content that is being displayed, as noted in the referenced StackOverflow reply.
... install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser (also known as augmented browsing). ...
I need the page to open in the middle of its content instead of the top, as it does by default. Is it possible to do that?
Anchor elements have been shown but should be mentioned by name, no pun intended. What you are looking for in the target page is an anchor element with a name="" attribute somewhere, if the target is not HTML5. If the target is HTML5, then an id attribute is needed. An id attribute can be used in earlier versions of HTML / XHTML.
IMHO HTML5 is a mess from having had influence from M$, which only ever leads to damage.
Be that as it may, the page you use as an example, youtube.com, is HTML5 and has a lot of elements with id attributes to choose from. But most of them seem to be auto-generated and random and thus unpredictable. There are a few apparently fixed ones like "guide" scattered about:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.