Broken "href=javascript:func()" functionality. Where to report?
I dont get the technical stuff, but I have this error and its very annoying, detailed well in this reddit thread:
https://www.reddit.com/r/Steam/comments/1518uju/in_the_workshop_clicking_an_image_to_enlarge_it/
I dont get the technical stuff, but I have this error and its very annoying, detailed well in this reddit thread:
https://www.reddit.com/r/Steam/comments/1518uju/in_the_workshop_clicking_an_image_to_enlarge_it/
All Replies (1)
You can create a new bookmark and paste the JavaScript code in its URL field where you would normally enter the address of the website. You can invoke this bookmarklet on pages that have javascript:func() links, that will copy the href attribute to an onclick attribute.
javascript:(function(){document.querySelectorAll('a[href^="javascript:func()"]').forEach(c=>{c.setAttribute('onclick',c.getAttribute('href'));c.setAttribute('href','javascript:;')})})()