Skip to content

Commit

Permalink
Updated update page. Added ability to toggle donate message.
Browse files Browse the repository at this point in the history
  • Loading branch information
deanoemcke committed Sep 26, 2015
1 parent 48a5766 commit 44ba1b8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 15 deletions.
3 changes: 2 additions & 1 deletion src/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ <h2 id="aboutVersion">The Great Suspender</h2>
<div id='donateSection'>
<p>If you like The Great Suspender &amp; you're feeling generous...</p>
<div id='donateButtons'></div>
<a id='alreadyDonatedToggle' href='#' style="clear: left; float: left; margin-top: 15px;">Already donated?</a>
</div>
<div id='donatedSection' style='display:none;'>
<p>Thanks a lot for your donation. You've made thank you cat happy.</p>
Expand All @@ -51,10 +52,10 @@ <h2 id="aboutVersion">The Great Suspender</h2>
|,4- ) )_ .;.( `'-'
'---''(_/._)-'(_\_)
</pre>
<a id='donateAgainToggle' href='#'>Want to donate again?</a>

</div>


</div>

</div>
Expand Down
16 changes: 13 additions & 3 deletions src/js/about.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
document.getElementById('donatedSection').style.display = 'block';
}

function hideNagForever() {
gsUtils.setOption(gsUtils.NO_NAG, true);
function toggleNag(hideNag) {
gsUtils.setOption(gsUtils.NO_NAG, hideNag);
}

function loadDonateButtons() {
Expand All @@ -29,8 +29,18 @@
i;

for (i = 0; i < donateBtns.length; i++) {
donateBtns[i].onclick = hideNagForever;
donateBtns[i].onclick = function() {
toggleNag(true);
};
}
document.getElementById('alreadyDonatedToggle').onclick = function() {
toggleNag(true);
window.location.reload();
};
document.getElementById('donateAgainToggle').onclick = function() {
toggleNag(false);
window.location.reload();
};
}

var request = new XMLHttpRequest();
Expand Down
3 changes: 3 additions & 0 deletions src/js/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,9 @@ var tgs = (function () {

//recover tabs silently
checkForCrashRecovery(true);

//show update screen
chrome.tabs.create({url: chrome.extension.getURL('update.html')});
}

}
Expand Down
25 changes: 14 additions & 11 deletions src/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,30 @@
<img src="img/dude_large.png" />
</div>

<h1>Important!</h1>
<h2>The Great Suspender has been updated</h2>
<h1>The Great Suspender has been updated</h1>

<hr class="splashRule" />

<h2><strong>The bad news:</strong></h2>
<p>In order to perform this update, all your suspended tabs have been removed from your browser. Due to the way The Great Suspender used to work, there was no way to prevent this from happening or from letting you know in advance.</p>
<h2>Bugs squashed</h2>
<p>This new version fixes the bug caused by the new chrome release that caused tabs to change the the wrong url when they were suspended.
Sorry for such a terrible bug and that the fix was a long time coming.</p>
<p>The 'suspend other tabs' option will now NOT suspend the currently active tab.</p>
<p>Browsing in incognito mode will no longer bring up the welcome tab every time.</p>

<p><strong>BUT</strong>, if you go to the new <a href='/history.html' target='_blank'>session management</a> page, you will find your recently suspended tabs in the 'Recent sessions' section. From here you should be able to recover any lost tabs. If this does not go back far enough in time, then under 'Saved sessions' you will find a more comprehensive list of previously suspended tabs.</p>
<h2>What's new?</h2>
<p>This version includes light and dark themes. Try switching to the dark theme when using chrome at night to go easy on your eyes.</p>
<p>The extension now supports actions on multiple selected tabs. If you select multiple tabs in chrome, you will have some new options appear
in the pop-up menu to allow you to suspend / unsuspend all selected tabs</p>
<p>The new improved whitelist now supports regular expressions. For the programming-minded only!</p>
<p>You can check it all out in the <a href='/options.html' target='_blank'>settings</a> page.</p>

<p>Fortunately, this will never happen again. Future updates of this extension will not have this same issue - your tabs will be remembered and will be restored automagically.</p>
<h2>Problems with the update?</h2>
<p>If you are experiencing a loss of tabs due to this update, try going to the <a href='/history.html' target='_blank'>session management</a> page. You will find a list of all your recently suspended tabs and should be able to recover them from here.</p>

<p>If losing your tabs has made you extremely upset and you want to uninstall this extension: fair enough - but before you do, please go through the session recovery process first and make sure all your tabs are recovered and unsuspended before you uninstall.</p>

<h2><strong>The good news:</strong></h2>
<p>This new version contains lots of bug fixes and new features such as session management, temporary whitelisting, form input detection and cross device history support. You can check it all out in the <a href='/options.html' target='_blank'>settings</a> page.</p>

<p>Thanks for using <strong>The Great Suspender!</strong></p>

<a href='/history.html' target='_blank'><button id='manageManuallyLink' class='btn secondary'>Try out the new session manager</button></a>

</div>


Expand Down

0 comments on commit 44ba1b8

Please sign in to comment.