I have the following bookmarklet which opens all posts shown in the "Unread topics" page of a SMF forum (the original is a single line):
javascript:(function(){
var topics = new Array();
var links = document.getElementsByTagName('a');
for (var i = 0; i < links.length; i++) {
if (links[i].href.indexOf('#new') != -1)
topics.push(links[i].href);
}
for (var i = 0; i < topics.length; i++) {
window.open(topics[i]);
}
})();
It used to work fine: I opened the page with the links, clicked the bookmarklet, and all the topics would open in new tabs.
After the last Chrome update (my current version is 22.0.1229.79 m, Windows 7 x64), this changed. When I click it, the first topic is opened in a new tab, but the other topics open in popups (I had to authorize them the first time).
My questions are:
- How to workaround this issue and restore old behaviour?
- What caused this change?