From 67e23f7f45bd5ecc3ff5e885ebe2c33a57b25e24 Mon Sep 17 00:00:00 2001 From: the1812 Date: Tue, 27 Nov 2018 13:35:37 +0800 Subject: [PATCH] Fix bug in flatMap polyfill --- bilibili-evolved.offline.user.js | 5 ++--- bilibili-evolved.preview-offline.user.js | 5 ++--- bilibili-evolved.preview.user.js | 3 +-- bilibili-evolved.user.js | 3 +-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/bilibili-evolved.offline.user.js b/bilibili-evolved.offline.user.js index 5a5819ee2..ae691585c 100644 --- a/bilibili-evolved.offline.user.js +++ b/bilibili-evolved.offline.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Bilibili Evolved (Offline) -// @version 133.90 +// @version 133.91 // @description 增强哔哩哔哩Web端体验(离线版): 修复界面瑕疵, 删除广告, 使用夜间模式浏览, 下载视频或视频封面, 以及增加对触屏设备的支持等. // @author Grant Howard, Coulomb-G // @copyright 2018, Grant Howrad (https://github.com/the1812) @@ -1036,8 +1036,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m .map(mapFunc) .reduce((acc, it) => acc.concat(it), []); }; - flatMap.bind(this.styles); - return flatMap; + return flatMap.bind(this.styles); } else { diff --git a/bilibili-evolved.preview-offline.user.js b/bilibili-evolved.preview-offline.user.js index da2fc72aa..89017bb77 100644 --- a/bilibili-evolved.preview-offline.user.js +++ b/bilibili-evolved.preview-offline.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name Bilibili Evolved (Preview Offline) -// @version 133.90 +// @version 133.91 // @description 增强哔哩哔哩Web端体验(预览离线版): 修复界面瑕疵, 删除广告, 使用夜间模式浏览, 下载视频或视频封面, 以及增加对触屏设备的支持等. // @author Grant Howard, Coulomb-G // @copyright 2018, Grant Howrad (https://github.com/the1812) @@ -1036,8 +1036,7 @@ offlineData["https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/m .map(mapFunc) .reduce((acc, it) => acc.concat(it), []); }; - flatMap.bind(this.styles); - return flatMap; + return flatMap.bind(this.styles); } else { diff --git a/bilibili-evolved.preview.user.js b/bilibili-evolved.preview.user.js index 362da1540..a961c022c 100644 --- a/bilibili-evolved.preview.user.js +++ b/bilibili-evolved.preview.user.js @@ -984,8 +984,7 @@ .map(mapFunc) .reduce((acc, it) => acc.concat(it), []); }; - flatMap.bind(this.styles); - return flatMap; + return flatMap.bind(this.styles); } else { diff --git a/bilibili-evolved.user.js b/bilibili-evolved.user.js index 8bef4de75..998aad5ce 100644 --- a/bilibili-evolved.user.js +++ b/bilibili-evolved.user.js @@ -984,8 +984,7 @@ .map(mapFunc) .reduce((acc, it) => acc.concat(it), []); }; - flatMap.bind(this.styles); - return flatMap; + return flatMap.bind(this.styles); } else {