Fix prettifying.
This commit is contained in:
parent
fbe14718d6
commit
a7c5f7ecee
@ -5223,7 +5223,7 @@
|
||||
nodes.push(Main.preParse(node));
|
||||
}
|
||||
Main.node(nodes, true);
|
||||
Main.hasCodeTags = !!$('script[src="//static.4chan.org/js/prettify/prettify.js"]');
|
||||
Main.hasCodeTags = !!$('script[src^="//static.4chan.org/js/prettify/prettify"]');
|
||||
if (MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.OMutationObserver) {
|
||||
observer = new MutationObserver(Main.observer);
|
||||
observer.observe(board, {
|
||||
|
||||
@ -4189,7 +4189,7 @@ Main =
|
||||
Main.node nodes, true
|
||||
|
||||
# Execute these scripts on inserted posts, not page init.
|
||||
Main.hasCodeTags = !! $ 'script[src="//static.4chan.org/js/prettify/prettify.js"]'
|
||||
Main.hasCodeTags = !! $ 'script[src^="//static.4chan.org/js/prettify/prettify"]'
|
||||
|
||||
if MutationObserver = window.MutationObserver or window.WebKitMutationObserver or window.OMutationObserver
|
||||
observer = new MutationObserver Main.observer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user