Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security error: attempted to read protected variable #296

Closed
jesus2099 opened this issue Nov 10, 2016 · 0 comments
Closed

Security error: attempted to read protected variable #296

jesus2099 opened this issue Nov 10, 2016 · 0 comments

Comments

@jesus2099
Copy link
Owner

Error running script: mb. ALL LINKS
ReferenceError: Security error: attempted to read protected variable
Security error: attempted to read protected variable

I think it has to do with the code that used to successfully retrieve the MBS <hr> style :

var hrStyle = {css: ""};
main();
for (var s = 0; s < document.styleSheets.length; s++) {
for (var r = 0; r < document.styleSheets[s].cssRules.length - 1; r++) {
if (hrStyle.match = document.styleSheets[s].cssRules[r].cssText.match(/(#sidebar.+ul.+hr) {(.+)}/)) {
hrStyle.css += hrStyle.match[2];
}
}
}
if (hrStyle.css) {
j2css.insertRule("div#sidebar ul.external_links hr { margin-top: 8px !important; width: inherit !important; " + hrStyle.css + "}", 0);
}

But no need to try fixing before merging #244.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant