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 7742677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:20:08+00:00 2026-06-01T09:20:08+00:00

This is a ‘best practice’ question. I want to play with the look and

  • 0

This is a ‘best practice’ question.

I want to play with the look and feel of a web application that delivers a UI to us. I have no access to the source or server.

I’m doing a, “this could be so much better with a bit of effort,” exercise.

So the question for the Stack Overflow community is what is your weapon of choice to to do this?

This isn’t a hacking question, I don’t want to alter someone else’s code I just want to do this within my own browser as a demo.

AFAIK Greasemonkey (or Tampermonkey as Chrome is my preferred browser) would eat this, but may be overkill for what I need (I’ve never used it and understand that there’s a fairly steep learning curve?)

So, here’s the simple use-case

If the URL = http://..... insert xxxx.js and yyyy.css before rendering the page in the browser…

What’s the best tool for the job for a slacker like me?

  • 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-06-01T09:20:10+00:00Added an answer on June 1, 2026 at 9:20 am

    greasemonkey is not too hard to learn, most of the coding is simply javascript.
    tampermonkey is simply an addon for chrome that enables certain greasmonkey-specific coding.
    (for what you are doing this is probably not required)

    should only take a few lines to inject your .js and .css

    i believe you actually want your stuff to run after the source page has fully loaded, if run before it will be overwritten by the source when it loads

    here is my code that does a simple mod to facebook:

    var script = document.createElement('script');
    script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js';
    document.getElementsByTagName('head')[0].appendChild(script);
    script.addEventListener('load', function(){ 
        $ = unsafeWindow['jQuery'];
        $.noConflict();
        // all jQ code goes below here
        // ---------------------------
    
        function doFont(){
        $('.fbChatTabSelector .numMessages').css('font-size','8px');    // change font smaller on red chat bubble
        $('.fbChatTabSelector .numMessages').css('color','yellow'); // change font color on red chat bubble
        $('.fbJewel .jewelCount').css('color','yellow');        // change font color of red bubble up top (alert jewel)
        }
    
        window.setTimeout(doFont, 30000);   // wait 30 seconds and apply changes. i only do this because fb loads in chunks and my script executes before the entire page is loaded. you would only need this if your source page loads alot ofstuff with ajax
        //------------------------------------
        // end jQ code
    }, false);
    

    hope that helps

    this question is also relevant to my interests because i want to @require jquery and just use it within greasemonkey – but the only construct i could get working is the one above which actually downloads the script again with every page load.

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

Sidebar

Related Questions

this is probably the most noob question i have ever asked, i need to
This is a super simple issue that I can't figure out. I want to
This is mostly a philosophical question about the best way to interpret the HTTP
This is a normalization thing, but I want I have to hold information about
This may be an unusual question, but are there any resources people have come
This is my second question, and I’m hoping to resolve an issue that I
this is my first question in here, and I would like to ask if
This question is directly related to this SO question I posed about 15 minutes
This question is kind of a follow up to this question I asked a
This should be a simple one: I have an observableArray object called To in

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.