diff --git a/4chan_x.user.js b/4chan_x.user.js index 3d26ec9f9..bc5a5caab 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 4chan x -// @version 2.33.5 +// @version 2.33.6 // @namespace aeosynth // @description Adds various features. // @copyright 2009-2011 James Campos @@ -23,7 +23,7 @@ * Copyright (c) 2009-2011 James Campos * Copyright (c) 2012 Nicolas Stepien * http://mayhemydg.github.com/4chan-x/ - * 4chan X 2.33.5 + * 4chan X 2.33.6 * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation @@ -4636,7 +4636,7 @@ case 'images.4chan.org': $.ready(function() { var url; - if (d.title === '4chan - 404' && Conf['404 Redirect']) { + if (/^4chan - 404/.test(d.title) && Conf['404 Redirect']) { path = location.pathname.split('/'); url = Redirect.image(path[1], path[3]); if (url) { @@ -4749,7 +4749,7 @@ }, ready: function() { var MutationObserver, a, board, nav, node, nodes, observer, _i, _j, _len, _len1, _ref, _ref1; - if (d.title === '4chan - 404') { + if (/^4chan - 404/.test(d.title)) { if (Conf['404 Redirect'] && /^\d+$/.test(g.THREAD_ID)) { location.href = Redirect.thread(g.BOARD, g.THREAD_ID, location.hash); } @@ -4954,7 +4954,7 @@ return $.globalEval(("(" + code + ")()").replace('_id_', bq.id)); }, namespace: '4chan_x.', - version: '2.33.5', + version: '2.33.6', callbacks: [], css: '\ /* dialog styling */\ diff --git a/Cakefile b/Cakefile index 92703dfe7..ee5762af2 100644 --- a/Cakefile +++ b/Cakefile @@ -2,7 +2,7 @@ {exec} = require 'child_process' fs = require 'fs' -VERSION = '2.33.5' +VERSION = '2.33.6' HEADER = """ // ==UserScript== diff --git a/changelog b/changelog index 3b0e81854..cb8e24540 100644 --- a/changelog +++ b/changelog @@ -1,5 +1,9 @@ master +2.33.6 +- Mayhem + Update/fix archive redirection method. + 2.33.5 - Mayhem Add /sp/ archive redirection. diff --git a/latest.js b/latest.js index 59d319320..2f8a4082f 100644 --- a/latest.js +++ b/latest.js @@ -1 +1 @@ -postMessage({version:'2.33.5'},'*') \ No newline at end of file +postMessage({version:'2.33.6'},'*') \ No newline at end of file diff --git a/script.coffee b/script.coffee index 740778dfa..370a34574 100644 --- a/script.coffee +++ b/script.coffee @@ -3590,7 +3590,7 @@ Main = return when 'images.4chan.org' $.ready -> - if d.title is '4chan - 404' and Conf['404 Redirect'] + if /^4chan - 404/.test(d.title) and Conf['404 Redirect'] path = location.pathname.split '/' url = Redirect.image path[1], path[3] location.href = url if url @@ -3697,7 +3697,7 @@ Main = $.ready Main.ready ready: -> - if d.title is '4chan - 404' + if /^4chan - 404/.test d.title if Conf['404 Redirect'] and /^\d+$/.test g.THREAD_ID location.href = Redirect.thread g.BOARD, g.THREAD_ID, location.hash return @@ -3845,7 +3845,7 @@ Main = $.globalEval "(#{code})()".replace '_id_', bq.id namespace: '4chan_x.' - version: '2.33.5' + version: '2.33.6' callbacks: [] css: ' /* dialog styling */