The My Opera forums have been replaced with forums.opera.com. Please head over there to discuss Opera's products and features
See the new ForumsYou need to be logged in to post in the forums. If you do not have an account, please sign up first.
[UserJavaScript] BeforeCSS/AfterCSSイベントでstyle要素を検知できない
http://www.opera.com/docs/userjs/specs/↑によると、
とされており、style要素とlink要素の両方を検知できるように読めます。ためしに、The element attribute of the UserJSEvent refers either to the style or the link elements that include the styles in the document.
window.opera.addEventListener('BeforeCSS', function(e) { this.postError(e.element.localName); }, false);と書いてstyle要素が含まれているページをいくつか開いてみましたが、link要素しか拾えません。外部CSSを遮断するだけならコンテンツブロックで事足りますし、スタイルの書き換えを狙うにしても片手落ちの感が強いです。(自分の勘違いでなければ)style要素も拾えるようにしてほしいところです。
Opera Developer News - What’s new in Opera's snapshots: 7 October 2011 によると 10/07 の 12.00.1085 (Opera Desktop Team - An updated Core, with Ragnarök and CSS3 radial gradients) から拾わなくなったようです.
--
t.ashula
t.ashula