From 869168f727444646a8fa586dc9a235f2a70a13f9 Mon Sep 17 00:00:00 2001 From: tophf Date: Sat, 30 Sep 2017 03:13:59 +0300 Subject: [PATCH] install: better USO title bug workaround on page>=2 --- content/install.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/install.js b/content/install.js index 0445af7f..a20ff50a 100644 --- a/content/install.js +++ b/content/install.js @@ -114,7 +114,7 @@ new MutationObserver((mutations, observer) => { if (document.body) { observer.disconnect(); // 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({ method: 'getStyles', url: getMeta('stylish-id-url') || location.href