Skip to content

Commit

Permalink
Revert changes to FIRE and AEKS, as requested by @Cerbrus
Browse files Browse the repository at this point in the history
  • Loading branch information
j-f1 committed May 14, 2017
1 parent 6da1d69 commit 1eafb97
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 49 deletions.
4 changes: 1 addition & 3 deletions aeks/aeks.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// @namespace https://github.com/Charcoal-SE/
// @description Automatically enable keyboard shortcuts for any SE site you're on. This may require a reload for the setting to take effect.
// @author Cerbrus
// @contributor J F
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
// @version 1.1.1
// @version 1.1.0
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/aeks/aeks.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/aeks/aeks.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
Expand All @@ -21,6 +20,5 @@
// @exclude *://chat.stackoverflow.com/*
// @exclude *://blog.stackoverflow.com/*
// @exclude *://*.area51.stackexchange.com/*
// @require https://wzrd.in/standalone/debug@%5E2.6.6
// @grant none
// ==/UserScript==
16 changes: 9 additions & 7 deletions aeks/aeks.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// @namespace https://github.com/Charcoal-SE/
// @description Automatically enable keyboard shortcuts for any SE site you're on. This may require a reload for the setting to take effect.
// @author Cerbrus
// @contributor J F
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
// @version 1.1.1
// @version 1.1.0
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/aeks/aeks.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/aeks/aeks.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
Expand All @@ -21,21 +20,24 @@
// @exclude *://chat.stackoverflow.com/*
// @exclude *://blog.stackoverflow.com/*
// @exclude *://*.area51.stackexchange.com/*
// @require https://wzrd.in/standalone/debug@%5E2.6.6
// @grant none
// ==/UserScript==

(function () {
"use strict";
const createDebug = window.debug;
const debug = createDebug("aeks");

var userscript = function ($) {
function log(message) {
if (console && console.log) {
console.log(message);
}
}

var userLink = $(".my-profile, .profile-me").attr("href");

// AEKS has already ran on this site, or the user doesn't have an account here.
if (!userLink || localStorage.aeksFinished) {
debug("AEKS cancelled: User has no account or AEKS already finished on this site.");
log("AEKS cancelled: User has no account or AEKS already finished on this site.");
return;
}

Expand All @@ -51,7 +53,7 @@
params,
function () {
localStorage.aeksFinished = true;
debug("AEKS finished on this site.");
log("AEKS finished on this site.");
}
);
};
Expand Down
4 changes: 1 addition & 3 deletions fire/fire.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
// @namespace https://github.com/Charcoal-SE/
// @description FIRE adds a button to SmokeDetector reports that allows you to provide feedback & flag, all from chat.
// @author Cerbrus
// @contributor J F
// @attribution Michiel Dommerholt (https://github.com/Cerbrus)
// @version 1.0.10
// @version 1.0.9
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/fire/fire.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
Expand All @@ -14,6 +13,5 @@
// @match *://chat.meta.stackexchange.com/rooms/89/tavern-on-the-meta*
// @match *://chat.stackexchange.com/rooms/56223/the-spam-blot*
// @match *://chat.stackoverflow.com/rooms/111347/sobotics*
// @require https://wzrd.in/standalone/debug@%5E2.6.6
// @grant none
// ==/UserScript==

0 comments on commit 1eafb97

Please sign in to comment.