install: better USO title bug workaround on page>=2
This commit is contained in:
parent
7cf27601ae
commit
869168f727
|
@ -114,7 +114,7 @@ new MutationObserver((mutations, observer) => {
|
||||||
if (document.body) {
|
if (document.body) {
|
||||||
observer.disconnect();
|
observer.disconnect();
|
||||||
// TODO: remove the following statement when USO pagination title is fixed
|
// TODO: remove the following statement when USO pagination title is fixed
|
||||||
document.title = document.title.replace(/^\d+&category=/, '');
|
document.title = document.title.replace(/^(\d+)&\w+=/, '#$1: ');
|
||||||
chrome.runtime.sendMessage({
|
chrome.runtime.sendMessage({
|
||||||
method: 'getStyles',
|
method: 'getStyles',
|
||||||
url: getMeta('stylish-id-url') || location.href
|
url: getMeta('stylish-id-url') || location.href
|
||||||
|
|
Loading…
Reference in New Issue
Block a user