You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<html><head><title>Working...</title></head><body><formmethod="POST" name="hiddenform" action="http://dummy"><inputtype="hidden" name="Data" value="SomeData"/><inputtype="hidden" name="OtherData" value="Coffee"/><noscript><p>Script is disabled. Click Submit to continue.</p><inputtype="submit" value="Submit"/></noscript></form><scriptlanguage="javascript">window.setTimeout(alert('Submited via JS'),0);</script></body></html>
When JavaScript is disabled via the Switcher, the <p> tag is shown as expected, but not the <input>.
If JavaScript is disabled via javascript.enabled, the entire <noscript> is shown (but only if the Switcher is green).
This bug is also prevalent with <style> elements which can break entire websites: Try opening a Startpage search with JS disabled by this addon: The results are invisible (!) because of missing noscript styles.
Activity
phil294 commentedon Apr 17, 2022
This bug is also prevalent with
<style>elements which can break entire websites: Try opening a Startpage search with JS disabled by this addon: The results are invisible (!) because of missing noscript styles.I normally never recommend copying code, but in this case, I think it's best to just use 100% of uBlocks code for this logic, so replace
background/content.jswith https://github.com/gorhill/uBlock/blob/2b9aba27489274a42bcc03ae7ac1da3bb33305a9/src/js/scriptlets/noscript-spoof.js and it works fine. This uBlock version also considers xml files and meta refresh inside .