Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 function() { | |
|
Yaron
2014/08/12 20:48:59
Why did you remove the closure wrap? It's no longe
smaslo
2014/08/12 20:58:15
Done.
| |
| 6 var elems = document.querySelectorAll( | |
| 7 'meta[property="og:type"],meta[name=\\"og:type\\"]'); | |
| 8 for (var i in elems) { | |
| 9 if (elems[i].content && elems[i].content.toUpperCase() == 'ARTICLE') { | |
| 10 return true; | |
| 11 } | |
| 12 } | |
| 13 var elems = document.querySelectorAll( | |
| 14 '*[itemtype="http://schema.org/Article"]'); | |
| 15 for (var i in elems) { | |
| 16 if (elems[i].itemscope) { | |
| 17 return true; | |
| 18 } | |
| 19 } | |
| 20 return false; | |
| 21 } | |
| OLD | NEW |