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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:09:36+00:00 2026-05-26T16:09:36+00:00

I found myself reading the same questions over and over, so I wanted a

  • 0

I found myself reading the same questions over and over, so I wanted a way to hide questions.

I have a script to does what is suppose to do, however it cripples existing javascript, such as the upvote button and adding tags when asking questions. Does anyone know why this is happening, or how to fix it?

Edit: oh, in the error console I am getting:

Error: $ is not a function
Source File: http://cdn.sstatic.net/js/stub.js?v=b7084478a9a4
Line: 1

Edit2:

The solution

(fixed @17/06/2014)

// ==UserScript==
// @name           StackOverflowHidePosts
// @namespace      StackOverflowHidePosts
// @description    Allows you to hide questions on Stack Overflow.
// @include        http://stackoverflow.com/*
// @require        http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// ==/UserScript==

var idListString = GM_getValue('idList', '');
var idList = idListString.split(',');
GM_setValue('idList', idList.join(','));

function getId (idString)
{
    return idString.split('-')[2];
}

function removeQuestion (e)
{
    var id = getId(e.data.questionSummaryDiv.id);

    $(e.data.questionSummaryDiv).hide(250);

    idList.push(id);

    setTimeout(function() {
        GM_setValue('idList', idList.join(','));
    }, 0);

    return false;
}

$('div.question-summary').each(function (index, questionSummaryDiv)
{
    var id = getId(questionSummaryDiv.id);

    if (idList.indexOf(id) != -1)
    {
        $(questionSummaryDiv).hide();

        return;
    }

    var link = $('<a><em>(Hide Post)</em></a>');

    link.attr('href', '#' + questionSummaryDiv.id);

    link.click({questionSummaryDiv: questionSummaryDiv}, removeQuestion);

    $('div.started', questionSummaryDiv).append(link);
});
  • 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-26T16:09:36+00:00Added an answer on May 26, 2026 at 4:09 pm

    Never inject JS if you don’t have to, and never use the page’s jQuery in FF GM — that’s the main source of errors in this case.

    The entire script should be:

    // ==UserScript==
    // @name           StackOverflowImTooStupidMarker
    // @namespace      StackOverflowImTooStupidMarker
    // @description    Allows you to hide questions on Stack Overflow when you can't answer them.
    // @include        http://stackoverflow.com/*
    // @require        http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
    // ==/UserScript==
    
    var idListString = GM_getValue('idList', '');
    var idList = idListString.split(',');
    GM_setValue('idList', idList.join(','));
    
    function getId (idString)
    {
        return idString.split('-')[2];
    }
    
    function removeQuestion (e)
    {
        var id = getId(e.data.questionSummaryDiv.id);
    
        $(e.data.questionSummaryDiv).hide(250);
    
        idList.push(id);
    
        setTimeout(function() {
            GM_setValue('idList', idList.join(','));
        }, 0);
    
        return false;
    }
    
    $('div.question-summary').each(function (index, questionSummaryDiv)
    {
        var id = getId(questionSummaryDiv.id);
    
        if (idList.indexOf(id) != -1)
        {
            $(questionSummaryDiv).hide();
    
            return;
        }
    
        var link = $('<a><em>(Too Stupid)</em></a>');
    
        link.attr('href', '#' + questionSummaryDiv.id);
    
        link.click({questionSummaryDiv: questionSummaryDiv}, removeQuestion);
    
        $('div.started', questionSummaryDiv).append(link);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have found myself designing a language for fun that is a cross between
I have recently found myself becoming more negative about EF and cannot help wondering
I have found myself doing this in my code to 'cache' the work done
I have made this mistake several times, and found myself referencing This Post every
I found myself in a desperate situation trying to understand the algorithm below. Does
I found myself writing the following a lot: int location =2; vector<int> vec; vector<int>::iterator
I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's
I just found myself creating a class called InstructionBuilderFactoryMapFactory. That's 4 pattern suffixes on
Lately I've found myself constantly running ILDASM to study the MSIL output of my
I've found myself writing for(int i=0;i<myvec.size();i++) myvec[i]->DoWhatever(param); a lot, and I'd like to compress

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.