Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7500301
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:08:02+00:00 2026-05-29T20:08:02+00:00

Introduction Google chrome has a feature that allows you to create shortcuts to web

  • 0

Introduction
Google chrome has a feature that allows you to create shortcuts to web pages and make them appear like traditional desktop applications.

For example, a shortcut to twitter mobile might be

C:\Users\<username>\AppData\Local\Google\Chrome\Application\chrome.exe  --app=https://mobile.twitter.com/

The file icon for this app is stored in

C:\Users\<username>\AppData\Local\Google\Chrome\User Data\Default\Web Applications\mobile.twitter.com\https_80

My Question
It’s been a while since I’ve used this feature and I seem to remember that you could add your own JavaScript files to the app folder which were included when the application was loaded. However, I cannot find any documentation that discusses this feature but I’m 99% certain it exists.

Does anyone have any details if this feature is available and what files I need to create?

Clarification

I’m basically opening a webpage using Chrome’s “Application Shortcut” and I want this webpage to refresh every x seconds. However, I do not have control over this webpage.

I’m sure in older versions of Chrome this used to be possible… unless I’m going mad.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T20:08:03+00:00Added an answer on May 29, 2026 at 8:08 pm

    Chrome extensions and their content scripts are also loaded when Chrome starts in the App mode.

    So, you can create a simple extension, which injects JavaScript code in the page as follows:

    1. Create a manifest.json file

    {
      "name": "Run code on twitter mobile",
      "version": "1.0",
      "manifest_version": 2,
      "content_scripts": [
        {
          "js": [
            "contentscript.js"
          ],
          "matches": [
            "https://mobile.twitter.com/*"
          ]
        }
      ],
      "web_accessible_resources": [
        {
          "resources": [
            "script.js"
          ],
          "matches": [
            "https://mobile.twitter.com/*"
          ]
        }
      ]
    }
    

    2. The content script

    Then, create a file called contentscript.js, and add the desired JavaScript code.
    This script is included at every load of the matched page. All DOM methods, via the document object is directly available. However, window and document.defaultView do not point to the window object in the page [source].

    If you want to access global methods or properties, you have to dynamically create a <script>, and inject it in the page (see Building a Chrome Extension – Inject code in a page using a Content script).

    contentscript.js

    var s = document.createElement('script');
    s.src = chrome.extension.getURL('script.js');
    (document.head||document.documentElement).appendChild(s);
    s.onload = function() {
        s.parentNode.removeChild(s);
    };
    

    3. The script which will be injected

    Then, create a file called script.js, and place it in the same folder as manifest.json and contentscript.js. The code in script.js executes as if it was a true part of the affected page.

    Reference for content scripts.

    Reference for web accessible resources.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Introduction I am planning to create a widget much like, Facebook provides for likes
From the Google Calendar Help document on the web, it is stated that:: Is
Introduction I've always been searching for a way to make Visual Studio draw a
Introduction In my current organisation, we have many desktop and web applications all feeding
Introduction I have been so annoyed by applications that have a startup dialog which
every introduction and sample that I can find seems to use GLUT or some
Long introduction: Normally all data necessary for my web application are stored in session
Google's introductory text to pubsubhubbub describes it as a server-to-server protocol. Google's video introduction
INTRODUCTION : I have a function(callback) that receives a object as an argument, inside
Introduction I am programming a semantic web application in haskell. With hsparql http://hackage.haskell.org/package/hsparql I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.