forked from Tiny-Giant/myuserscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNATOHideQuestions.user.js
More file actions
31 lines (28 loc) · 881 Bytes
/
NATOHideQuestions.user.js
File metadata and controls
31 lines (28 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// ==UserScript==
// @name NATO Hide Questions
// @namespace http://github.com/Tiny-Giant
// @version 1.0.0.0
// @description Hides the questions that are introduced by the NATO Enhancements script.
// @author @TinyGiant
// @include /https?:\/\/(meta\.)?stackoverflow.com\/tools\/new-answers-old-questions.*/
// @grant none
// ==/UserScript==
/* jshint -W097 */
/* jshint esnext:true */
'use strict';
const CSS = [
'.question {',
' display: none;',
'}',
'.answer {',
' background: rgba(0,0,0,0) !important;',
'}',
'table.default-view-post-table > tbody > tr > td {',
' border-bottom: 5px solid #ccc;',
' padding-top: 1em;',
'}'
].join('\n');
const style = document.createElement('style');
document.body.appendChild(style);
const text = document.createTextNode(CSS);
style.appendChild(text);