Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions fake115.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ unsafeWindow.document.addEventListener('DOMContentLoaded', function() {
var cont, error, error1, fakeSizeLimitGetter, fastSig, fastUpload, finput, getUserKey, js_top_panel_box, procLabel, uploadinfo;
try {
js_top_panel_box = unsafeWindow.document.getElementById('js_top_panel_box');
if (js_top_panel_box != null) {
if (js_top_panel_box !== null) {
cont = document.createElement('div');
finput = document.createElement('input');
finput.setAttribute('type', 'file');
Expand Down Expand Up @@ -492,7 +492,7 @@ unsafeWindow.document.addEventListener('DOMContentLoaded', function() {
filename: f.name,
filesize: f.size
};
if (uploadinfo != null) {
if (uploadinfo !== null) {
return fastUpload(param);
} else {
return getUserKey(param);
Expand Down Expand Up @@ -528,15 +528,15 @@ unsafeWindow.document.addEventListener('DOMContentLoaded', function() {
return nextPart(0);
};
}
if (unsafeWindow.UPLOAD_CONFIG_H5 != null) {
if (unsafeWindow.UPLOAD_CONFIG_H5 !== null) {
fakeSizeLimitGetter = function() {
return 115 * 1024 * 1024 * 1024;
};
if (Object.defineProperty != null) {
if (Object.defineProperty !== null) {
return Object.defineProperty(unsafeWindow.UPLOAD_CONFIG_H5, 'size_limit', {
get: fakeSizeLimitGetter
});
} else if (Object.prototype.__defineGetter__ != null) {
} else if (Object.prototype.__defineGetter__ !== null) {
return unsafeWindow.UPLOAD_CONFIG_H5.__defineGetter__('size_limit', fakeSizeLimitGetter);
}
}
Expand Down