diff --git a/4chan_x.user.js b/4chan_x.user.js index 98e040864..381d1852e 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -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, { diff --git a/script.coffee b/script.coffee index 0828bcc4b..9f00df223 100644 --- a/script.coffee +++ b/script.coffee @@ -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