diff --git a/Wazebar.js b/Wazebar.js index 46df9b5..c9a83f0 100644 --- a/Wazebar.js +++ b/Wazebar.js @@ -1,7 +1,7 @@ // ==UserScript== // @name WME Wazebar // @namespace https://greasyfork.org/users/30701-justins83-waze -// @version 2018.08.06.01 +// @version 2018.10.16.01 // @description Displays a bar at the top of the editor that displays inbox, forum & wiki links // @author JustinS83 // @include https://beta.waze.com/* @@ -367,13 +367,13 @@ var States = {}; $('#' + spanID).remove(); if(count > 0){ $('#'+parentID+' a').append(" (" + count + ")"); - var pattern = /announce_unread.*\s*.*(.*)<\/a>/g; + var pattern = /announce_unread.*\s*.*(?!/g; var unreadItems; var links = ""; $('#WazeBarUnreadList' + spanID).empty(); while((unreadItems = pattern.exec(page)) !== null) { - links += '
' + unreadItems[2] + '
'; + links += '
' + unreadItems[2].replace('img src="./styles/prosilver/imageset/icon_topic_solved_list.png"', 'img src="https://www.waze.com/forum/styles/prosilver/imageset/icon_topic_solved_list.png"') + '
'; } pattern = /sticky_unread.*\s*.*(.*)<\/a>/g; while((unreadItems = pattern.exec(page)) !== null) {