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

  • Home
  • SEARCH
  • 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 9172381
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:19:56+00:00 2026-06-17T16:19:56+00:00

Chrome seems to be eating up my userscript metadata: // ==UserScript== // @name Flag

  • 0

Chrome seems to be eating up my userscript metadata:


 // ==UserScript== 
 // @name Flag Offtopic button 
 // @version 1.0 
 // @description Vote-to-off-topic button
 // @author Manish Goregaokar (http://stackapps.com/users/10098/manishearth)
 // @license GNU GPL v3 (http://gnu.org/copyleft/gpl.html) 
 // @include http://meta.stackexchange.com/questions/* 
 // ==/UserScript==

function with_jquery(f) {
     var script = document.createElement("script");
     script.type = "text/javascript";
     script.textContent = "(" + f.toString() + ")(jQuery)";
     document.body.appendChild(script);
};

//(rest of script availible on request)

The script works, but the metadata doesn’t (it tries to run on every site, the filename shows up instead of “Flag Offtopic button”, etc)

I’m new to userscripts, so I don’t know what I’m doing wrong. Something stupid, no doubt.

Additional info: initially, the script had an incompatible charset (dunno why). I changed it to UTF-8 using Dreamweaver’s Modify>Page properties , and the script worked (with metadata). It later broke(can’t remember when) the metadata, but I thought it was some errant space. Now I can’t find what’s wrong. The above code itself (when copy-pasted to notepad, saved as abc.user.js, and drag-dropped to Chrome) loses its metadata.

  • 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-17T16:19:58+00:00Added an answer on June 17, 2026 at 4:19 pm

    There was no doubt a UTF-8 BOM hiding in the front of the document. That issue bit me the other day.

    (Why the UTF-8 BOM even exists is certainly a good question, but why editors even use them is truly confusing.)

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

Sidebar

Related Questions

The newest version of chrome seems to have killed my transparent backgrounds on my
It seems that i cannot call focus() on a textarea of my chrome extensions
Since it seems none exist, I'm trying to make a chrome extension to set
I'm writing into a session cookie from my plugin in chrome. The browser seems
Chrome's console reports an error. It lists the name of a function -- presumably,
Google Chrome seems to be blocking a popup I am creating via jQuery. After
Google Chrome seems to have a bug when overflowing content inside of a fieldset.
I have a website with animations. When the animation runs in chrome, chrome seems
I'm having an issue reading the below XML document in Chrome - nothing seems
I'm developing a website and using codes below.Chrome seems to work fine, but Firefox

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.