diff --git a/chrome/donation.js b/chrome/donation.js deleted file mode 100644 index d7f8ee33..00000000 --- a/chrome/donation.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (C) 2012 - 2016 Bo Zhu http://zhuzhu.org - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -/*global chrome: false, localStorage: false */ -"use strict"; - - -function create_donation_tab() { - if (typeof localStorage.showed_donation_page !== 'undefined') { - // Make sure the page is only shown once - return; - } - - var donation_url = chrome.i18n.getMessage('donation_url'); - chrome.tabs.create({ - url: donation_url - }); - - // Set the flag such that the page isn't shown again - localStorage.showed_donation_page = new Date().getTime(); -} - -chrome.runtime.onInstalled.addListener(function(details) { - if (details.reason === 'install') { - create_donation_tab(); - } -}); - -document.addEventListener("DOMContentLoaded", function() { - create_donation_tab(); -}); diff --git a/manifest.json b/manifest.json index aa712f30..48b12b99 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Unblock Youku", - "version": "3.8.12", + "version": "3.9.0", "manifest_version": 2, "minimum_chrome_version": "25.0", "description": "__MSG_description__", @@ -14,7 +14,6 @@ "webRequest", "webRequestBlocking", "storage", - "tabs", "http://*/*", "https://*/*" ], @@ -27,8 +26,7 @@ "chrome/header.js", "chrome/proxy.js", "chrome/redirect.js", - "chrome/config.js", - "chrome/donation.js" + "chrome/config.js" ] }, "browser_action": {