Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changes to prevent donation page showing on each startup

  • Loading branch information...
commit 0b34a13d73330771c0f3a4208d2784b35b883cee 1 parent cf0ace7
@codysherman authored
Showing with 7 additions and 16 deletions.
  1. +4 −12 background.html
  2. +1 −1  manifest.json
  3. +2 −3 options.html
View
16 background.html
@@ -34,24 +34,16 @@
if (!localStorage["loadcount"]) {
localStorage["loadcount"] = "0";
}
- if (!localStorage["donated"]) {
- if ((localStorage["loadcount"]>=40) && (localStorage["bothered"]!="1")) {
- chrome.tabs.create({url:'http://scrolltotopbutton.com/STTBdonate',selected:false});
+ if ((localStorage["loadcount"]=="40") && (localStorage["bothered"]!="1")) {
localStorage["bothered"]="1";
- }
- }
- if ((localStorage["bothered2"]!="2")) {
- chrome.tabs.create({url:'http://scrolltotopbutton.com/post/5310918199'});
- localStorage["bothered2"]="2";
- }
- if ((localStorage["loadcount"]<=2) && (localStorage["bothered2"]!="2")) {
- localStorage["bothered2"]="2";
+ chrome.tabs.create({url:'http://scrolltotopbutton.com/STTBdonate',selected:false});
}
if (localStorage["stbb"]=="on") {
localStorage["stbb"] = "flip";
}
if (localStorage["latest"]!="2"){
- chrome.tabs.create({url:'/options.html',selected:false});
+ localStorage["latest"]="2";
+ chrome.tabs.create({url:'/options.html',selected:false});
}
// Counts number of times Chrome has been opened to load donation message after certain amount
View
2  manifest.json
@@ -1,6 +1,6 @@
{
"name": "Scroll To Top Button",
- "version": "6.1.0",
+ "version": "6.1.1",
"description": "Adds a scroll to top or bottom button.",
"icons": {"16": "icons/Icon-16.png",
"32": "icons/Icon-32.png",
View
5 options.html
@@ -470,7 +470,7 @@
<button id="restore" title="Restore Defaults" onClick="defaults()"></button>
<button id="author" title="Author's Settings" onClick="authorsettings()"></button>
<p id="status" style="float:left; font-size:.9em; line-height:.5; padding:3px 0 0 10px;"></p>
-<p style="padding-top:10px;clear:left;"><strong><center>Press Alt+T/Alt+B or Home/End on a page to scroll with just your keyboard!</center></strong></p>
+<p style="padding-top:10px;clear:left;"><strong><center>Pick a shortcut above or use Home/End keys on a page to scroll with just your keyboard!</center></strong></p>
<!--<p><strong>Do you speak multiple languages? Please help me translate this extension! <a href="mailto:sttb@codysherman.com">Email me!</a></strong></p>-->
<div id="bottomNav">
<a href="http://scrolltotopbutton.com/" title="Release Notes" target="_blank"><div id="release"></div></a>
@@ -488,8 +488,7 @@
</div>
<script>
if (localStorage["latest"]!="2"){
- document.getElementById('welcome').style.display="inline";
- localStorage["latest"]="2";
+ localStorage["latest"]="2";
};
</script>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.