Last active
January 28, 2022 02:18
-
-
Save Aran-Fey/421b9c3de872000101e79b5ec771898d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name StackExchange hide new user's questions | |
// @description Hides questions from 1 rep users | |
// @version 1.2.5 | |
// @author Paul Pinterits | |
// @include /^https?://(meta\.)?(stackoverflow|serverfault|superuser|(.*\.)?stackexchange)\.com(/questions(/tagged/.*)?)?/?$/ | |
// @namespace Aran-Fey | |
// @require https://github.com/Aran-Fey/userscript-lib/raw/60f9b285091e93d3879c7e94233192b7ab370821/userscript_lib.js | |
// @require https://github.com/Aran-Fey/SE-userscript-lib/raw/763c94661583ca88491ab6c0616d1a5665224129/SE_userscript_lib.js | |
// @grant none | |
// @updateURL https://gist.github.com/Aran-Fey/421b9c3de872000101e79b5ec771898d/raw/SE_hide_new_users_questions.user.js | |
// @downloadURL https://gist.github.com/Aran-Fey/421b9c3de872000101e79b5ec771898d/raw/SE_hide_new_users_questions.user.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const MIN_REP = 2; | |
const MIN_SCORE = 0; | |
function hide_questions(){ | |
for (const question of page.list_questions()){ | |
if (question.author.reputation < MIN_REP || question.score < MIN_SCORE){ | |
question.element.remove(); | |
} | |
} | |
} | |
hide_questions(); | |
page.on_new_questions_loaded.register(hide_questions); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The problem was only on the homepage, but once the "eventually" in New post summary designs on site home pages and greatest hits now; everywhere else eventually comes around it would have broken on the questions/tagged pages too.
Looks like the revision 1.2.5 fixes it 👍