Dismiss Announcement Banner v0.1
This commit is contained in:
parent
f0b53abf72
commit
831f5dea69
2 changed files with 26 additions and 22 deletions
|
@ -0,0 +1,26 @@
|
|||
// ==UserScript==
|
||||
// @name Stack Exchange Dismiss Announcement Banner
|
||||
// @namespace https://github.com/Glorfindel83/
|
||||
// @description Automatically dismisses an announcement banner whenever you visit a (new) site.
|
||||
// @author Glorfindel
|
||||
// @updateURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/dismiss-announcement-banner/dismiss-announcement-banner.user.js
|
||||
// @downloadURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/dismiss-announcement-banner/dismiss-announcement-banner.user.js
|
||||
// @version 0.1
|
||||
// @match *://*.stackexchange.com/*
|
||||
// @match *://*.stackoverflow.com/*
|
||||
// @match *://*.superuser.com/*
|
||||
// @match *://*.serverfault.com/*
|
||||
// @match *://*.askubuntu.com/*
|
||||
// @match *://*.stackapps.com/*
|
||||
// @match *://*.mathoverflow.net/*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
// TODO: check (cross-site) storage before dismissing
|
||||
|
||||
(function () {
|
||||
"use strict";
|
||||
setTimeout(function() {
|
||||
$("div#announcement-banner a.js-dismiss").click();
|
||||
}, 100);
|
||||
})();
|
|
@ -1,22 +0,0 @@
|
|||
// ==UserScript==
|
||||
// @name Dismiss Net Neutrality Banner
|
||||
// @namespace https://github.com/Glorfindel83/
|
||||
// @description Automatically dismisses the Net Neutrality banner whenever you visit a (new) site.
|
||||
// @author Glorfindel
|
||||
// @version 0.1
|
||||
// @match *://*.stackexchange.com/*
|
||||
// @match *://*.stackoverflow.com/*
|
||||
// @match *://*.superuser.com/*
|
||||
// @match *://*.serverfault.com/*
|
||||
// @match *://*.askubuntu.com/*
|
||||
// @match *://*.stackapps.com/*
|
||||
// @match *://*.mathoverflow.net/*
|
||||
// @grant none
|
||||
// ==/UserScript==
|
||||
|
||||
(function () {
|
||||
"use strict";
|
||||
setTimeout(function () {
|
||||
$("#net-neutrality-dismiss").click();
|
||||
}, 100);
|
||||
})();
|
Loading…
Reference in a new issue