Ctrl+Left Click on Game List Open 2 Same Game Pages?

Subscribe to Ctrl+Left Click on Game List Open 2 Same Game Pages? 6 posts

Sign in to reply


 
avatar for Kannushi_Link Kannushi_Link 513 posts
Flag Post

OK, it’s getting annoying, because after the new game list page appeared, it’s now more annoying to play every games.

Because I always use Ctrl+Left Click to keep the list window while the game open in the new window, but with the new list page using the same method will make the list page redirect to the game page.

Although Middle Click still works, but the problem is my mouse has only 2 buttons. Please fix it.

PS : I’m using Firefox 3.5.4

 
avatar for Ventero Ventero 1968 posts
Flag Post

I’m pretty sure that’s on purpose. The reason is that depending on where you Ctrl-click, you’re clicking on the game-container which has an onclick-event which opens the game (so you don’t have to click a small link to open the game but click anywhere in the container), and you’re clicking on an element with an href-attribute (so it’s still possible to copy the link of the game etc.).

Kong could replace the onclick event which just changes location.href to window.open, but that would probably trigger popup-blockers.

If you want, I could write a smal Greasemonkey-snippet which removes the onclick, so you can Ctrl-click the games again.

 
avatar for Kannushi_Link Kannushi_Link 513 posts
Flag Post
Originally posted by Ventero:

I’m pretty sure that’s on purpose. The reason is that depending on where you Ctrl-click, you’re clicking on the game-container which has an onclick-event which opens the game (so you don’t have to click a small link to open the game but click anywhere in the container), and you’re clicking on an element with an href-attribute (so it’s still possible to copy the link of the game etc.).

Kong could replace the onclick event which just changes location.href to window.open, but that would probably trigger popup-blockers.

If you want, I could write a smal Greasemonkey-snippet which removes the onclick, so you can Ctrl-click the games again.

I tried to use ADblock but it seem like it’ll remove anything afterward, so I think I need your help on custom JavaScript as I don’t know anything about it. :O

 
avatar for Ventero Ventero 1968 posts
Flag Post

Here you go
It should work on both the game- and the badge-browser. If you can think of any improvements, feel free to tell me.

 
avatar for mustang_dvs mustang_dvs 41 posts
Flag Post

The issue here is that the onclick event interprets the middle-click/control-click/command-click event as a left-click, but does not prevent the browser from correctly opening the link as per the user’s intended method.

I don’t understand why the code was changed for div class=“game” — the game title and thumbnail have always been links to the game page, I don’t get why you’d want the entire div to be a link.

 
avatar for Phoenix00017 Phoenix00017 7300 posts
Flag Post

I’ll mention it to the devs and see if this is something we can fix without breaking the core functionality we were going for. Thanks for the reports, and thank you Ventero for the temporary fix in the meantime. :)

EDIT: We do indeed have a bug report on this and should be fixing it. Not sure if it’ll be in the next release or a bit thereafter, but probably won’t be too long.

Sign in to reply