Created
March 19, 2013 12:28
-
-
Save MBO/5195694 to your computer and use it in GitHub Desktop.
Userscript for Opera, to remove autofocus in http://proline.pl shop
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (location.hostname.indexOf('proline.pl') != -1) { | |
window.opera.addEventListener('BeforeScript', function(e) { | |
e.element.text = e.element.text.replace(/\.(focus\s*\(\))/g, "/* $1 -- commented by userscript */"); | |
}, false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment