diff --git a/CHANGELOG.md b/CHANGELOG.md index 7996c60..09fc140 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,12 @@ A major new feature in this release is that SOUP v1.46 will be the first stable * Rewrote [mse66646](http://meta.stackexchange.com/q/66646) fix for compatibility with new SE code. (The [related IME issue](http://meta.stackexchange.com/q/216834) seems to have been fixed, but this can still be triggered e.g. by the Firefox spell checker menu.) * Disabled the [mse207526](http://meta.stackexchange.com/q/207526) fix when the [new topbar](http://meta.stackoverflow.com/q/343103) is enabled, to avoid issues with dialog positioning. (Thanks, mjpieters!) +**Changes in 1.46.1:** + +* Removed **[mse221304: Make all i.stack.imgur.com links protocol-relative](http://meta.stackexchange.com/q/221304)** (no longer needed) +* Prepare for the renaming of per-site meta hostnames from `meta.*.stackexchange.com` to `*.meta.stackexchange.com`, make sure fixes continue to run on the correct sites. +* Don't auto-rewrite links to the old meta hostnames to use HTTPS, since they have broken certs. + 1.44 (5 Feb 2016) ==== diff --git a/README.md b/README.md index d6b4433..6abb3e1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - + ![](http://i.stack.imgur.com/IzzhJ.png "SOUP logo") @@ -34,7 +34,7 @@ Note that updates to the extension packages available at Firefox Add-ons and Chr Included fixes -------------- -SOUP v1.46.0 +SOUP v1.46.1 includes fixes or workarounds for the following issues. @@ -160,7 +160,6 @@ These fixes apply to the post review interface. I've listed them separately her These fixes are only applied when using Stack Exchange over HTTPS. Note that [HTTPS support for Stack Exchange is still experimental.](http://meta.stackexchange.com/questions/116782/better-https-support-for-stack-exchange-sites) * **[mse223725: All internal links on Stack Exchange sites should be protocol-relative](http://meta.stackexchange.com/q/223725)** -* **[mse221304: Make all i.stack.imgur.com links protocol-relative](http://meta.stackexchange.com/q/221304)** ### MathJax-related fixes: diff --git a/SOUP.meta.js b/SOUP.meta.js index fd71efc..2c3a703 100644 --- a/SOUP.meta.js +++ b/SOUP.meta.js @@ -3,7 +3,7 @@ // @namespace https://github.com/vyznev/ // @description Miscellaneous client-side fixes for bugs on Stack Exchange sites // @author Ilmari Karonen -// @version 1.46.0 +// @version 1.46.1 // @copyright 2014-2016, Ilmari Karonen (http://stackapps.com/users/10283/ilmari-karonen) // @license ISC; http://opensource.org/licenses/ISC // @match *://*.stackexchange.com/* diff --git a/SOUP.user.js b/SOUP.user.js index 63918e8..04e3687 100644 --- a/SOUP.user.js +++ b/SOUP.user.js @@ -3,7 +3,7 @@ // @namespace https://github.com/vyznev/ // @description Miscellaneous client-side fixes for bugs on Stack Exchange sites // @author Ilmari Karonen -// @version 1.46.0 +// @version 1.46.1 // @copyright 2014-2016, Ilmari Karonen (http://stackapps.com/users/10283/ilmari-karonen) // @license ISC; http://opensource.org/licenses/ISC // @match *://*.stackexchange.com/* @@ -279,7 +279,7 @@ fixes.codegolf959 = { fixes.math12902 = { title: "Visited questions are practically indistinguishable in search results", url: "http://meta.math.stackexchange.com/q/12902", - sites: /^math\./, + sites: /^math\.stackexchange\./, // "body" added to override conflicting SE styles css: "body a, body .question-hyperlink { color: #145d8a }" + "body a:visited, body .question-hyperlink:visited { color: #003b52 }" + @@ -294,21 +294,21 @@ fixes.math12902 = { fixes.math12902_meta = { title: "Visited questions are practically indistinguishable in search results (meta)", url: "http://meta.math.stackexchange.com/q/12902", - sites: /^meta\.math\./, + sites: /^meta\.math\.|^math\.meta\./, // "body" added to override conflicting SE styles css: "body a { color: #a29131 } body a:visited { color: #736722 }" }; fixes.math16559 = { title: "Typo in site CSS disables visited link color in community bulletin", url: "http://meta.math.stackexchange.com/q/16559", - sites: /^math\./, + sites: /^math\.stackexchange\./, // this rule is already in the site CSS, but without the colon in "a:visited" css: ".module.community-bulletin a:visited { color: #32455d !important }" }; fixes.math16559_meta = { title: "Typo in site CSS disables visited link color in community bulletin (meta)", url: "http://meta.math.stackexchange.com/q/16559", - sites: /^meta\.math\./, + sites: /^meta\.math\.|^math\.meta\./, css: ".module.community-bulletin a:visited { color: #444 !important }" }; fixes.electronics3162 = { @@ -1432,7 +1432,7 @@ fixes.mse223725 = { script: function () { if ( 'https:' != location.protocol ) return; var selector = 'a[href^="http://"]'; - var filter = /^([^.]+\.)*((stack(exchange|overflow|apps)|superuser|serverfault|askubuntu)\.com|mathoverflow\.net)$/; + var filter = /^([^.]+\.)?(((meta\.)?stackexchange|stackoverflow|stackapps|superuser|serverfault|askubuntu)\.com|mathoverflow\.net)$/; var exclude = /^(blog|elections)\./; // these sites still don't work properly over HTTPS :-( var fixLink = function () { if ( ! filter.test( this.hostname ) || exclude.test( this.hostname ) ) return; @@ -1446,27 +1446,7 @@ fixes.mse223725 = { $(document).on( 'mouseover click', selector, fixLink ); } }; -if ( 'https:' === location.protocol ) fixes.mse221304 = { - title: "Make all i.stack.imgur.com links protocol-relative", - url: "http://meta.stackexchange.com/q/221304", - script: function () { - // fallback: try to reload failed insecure images over HTTPS - var urlRegex = /^http:\/\/(([a-z0-9\-]+\.)*((imgur|gravatar|facebook|googleapis)\.com|wikimedia\.org|sstatic\.net|(stack(exchange|overflow|apps)|superuser|serverfault|askubuntu)\.com|mathoverflow\.net))\//i; - var fixImages = function (target) { - $(target).find('img[src^="http://"]').each( function () { - if ( ! urlRegex.test( this.src ) ) return; - if ( ! this.complete || this.naturalWidth > 0 ) return; - var newUrl = this.src.replace( urlRegex, 'https://$1/' ); - SOUP.log( 'soup mse221304 fixing img ' + this.src + ' -> ' + newUrl ); - this.src = newUrl; - } ); - }; - SOUP.addContentFilter( fixImages, 'HTTPS image fix' ); - $(document).on( 'mouseenter', '#user-menu', function () { - SOUP.try( 'HTTPS image fix', fixImages, [this] ); - } ); - } -}; + // @@ -1611,7 +1591,7 @@ var soupInit = function () { // basic environment detection, part 1 // (for MathJax detection, just check window.MathJax, and note that it may be loaded late due to mse215450) SOUP.isChat = /^chat\./.test( location.hostname ); - SOUP.isMeta = /^meta\./.test( location.hostname ); + SOUP.isMeta = /(^|\.)meta\./.test( location.hostname ); // run code after jQuery and/or SE framework have loaded SOUP.readyQueue = {}; diff --git a/manifest.json b/manifest.json index f3ba8bb..71a016a 100644 --- a/manifest.json +++ b/manifest.json @@ -4,8 +4,8 @@ "short_name": "SOUP", "description": "Miscellaneous client-side fixes for bugs on Stack Exchange sites", "author": "Ilmari Karonen", - "version": "1.46.0", - "version_name": "1.46.0", + "version": "1.46.1", + "version_name": "1.46.1", "homepage_url": "http://stackapps.com/questions/4486/stack-overflow-unofficial-patch", "icons": { "16": "icon/SOUP_icon_16.png",