mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Add reloadOnDomMutation function
This commit is contained in:
parent
95cd64cf77
commit
73df542483
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved (Preview)
|
||||
// @version 1.3.13
|
||||
// @version 1.3.14
|
||||
// @description 增强哔哩哔哩Web端体验. (预览版分支)
|
||||
// @author Grant Howard
|
||||
// @match *://*.bilibili.com/*
|
||||
@ -49,7 +49,7 @@
|
||||
notifyNewVersion: true,
|
||||
fixFullscreen: false,
|
||||
latestVersionLink: "https://github.com/the1812/Bilibili-Evolved/raw/preview/bilibili-evolved.preview.user.js",
|
||||
currentVersion: "1.3.13"
|
||||
currentVersion: "1.3.14"
|
||||
};
|
||||
function loadSettings()
|
||||
{
|
||||
@ -76,6 +76,12 @@
|
||||
GM_addValueChangeListener(key, change);
|
||||
}
|
||||
}
|
||||
function reloadOnDomMutation(selector, callback)
|
||||
{
|
||||
const element = document.querySelectorAll(selector);
|
||||
const observer = new MutationObserver(callback);
|
||||
observer.observe(element);
|
||||
}
|
||||
function loadResources()
|
||||
{
|
||||
Resource.root = "https://raw.githubusercontent.com/the1812/Bilibili-Evolved/preview/";
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name Bilibili Evolved
|
||||
// @version 1.3.13
|
||||
// @version 1.3.14
|
||||
// @description 增强哔哩哔哩Web端体验.
|
||||
// @author Grant Howard
|
||||
// @match *://*.bilibili.com/*
|
||||
@ -49,7 +49,7 @@
|
||||
notifyNewVersion: true,
|
||||
fixFullscreen: false,
|
||||
latestVersionLink: "https://github.com/the1812/Bilibili-Evolved/raw/master/bilibili-evolved.user.js",
|
||||
currentVersion: "1.3.13"
|
||||
currentVersion: "1.3.14"
|
||||
};
|
||||
function loadSettings()
|
||||
{
|
||||
@ -76,6 +76,12 @@
|
||||
GM_addValueChangeListener(key, change);
|
||||
}
|
||||
}
|
||||
function reloadOnDomMutation(selector, callback)
|
||||
{
|
||||
const element = document.querySelectorAll(selector);
|
||||
const observer = new MutationObserver(callback);
|
||||
observer.observe(element);
|
||||
}
|
||||
function loadResources()
|
||||
{
|
||||
Resource.root = "https://raw.githubusercontent.com/the1812/Bilibili-Evolved/master/";
|
||||
|
||||
@ -1 +1 @@
|
||||
1.3.13
|
||||
1.3.14
|
||||
Loading…
Reference in New Issue
Block a user