diff --git a/js/common.js b/js/common.js
index c787235..9f5a4e4 100644
--- a/js/common.js
+++ b/js/common.js
@@ -642,7 +642,7 @@ Popup.prototype.createListHTML = function (url) {
listHTML += ''
if (staleCounter > 0) {
- listHTML += '
';
+ listHTML += '';
}
return listHTML;
@@ -659,3 +659,20 @@ Popup.prototype.createListHTML = function (url) {
Popup.prototype.createSubmitForm = function (url) {
return 'Submit form not yet programmed.';
}
+
+/**
+ * Show stale posts.
+ * @alias Popup.showStalePosts()
+ * @return {Boolean} Returns true.
+ * @method
+ */
+Popup.prototype.showStalePosts = function () {
+ var stalePosts;
+
+ stalePosts = document.getElementsByClassName('stale');
+ document.getElementById('information').innerHTML = 'Showing stale posts. Visit the options page to change your Fresh Content preferences.';
+
+ while (stalePosts.length > 0) {
+ stalePosts[0].className = 'stale-shown';
+ }
+};