From 754586c8b40e4afd1e072c5b7ffd7c4dfc3eb6bf Mon Sep 17 00:00:00 2001 From: Meitar Moscovitz Date: Tue, 7 Jul 2015 02:58:39 -0600 Subject: [PATCH] Fixes #9: Uses Chrome-style linking to Extended Edition page on Windows. --- README.markdown | 2 ++ fetlife-age-sex-location-search.user.js | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 158d540..e497211 100644 --- a/README.markdown +++ b/README.markdown @@ -93,6 +93,8 @@ That said, since this script is public domain, it's entirely use-at-your-own-ris ## Change log +* Version 0.4.4.1 + * [Bugfix](https://github.com/meitar/fetlife-aslsearch/issues/9): Fix the link to "Extended Edition" search options for browsers running in Windows. * Version 0.4.4 * Feature: Support all new sexual role options in both Extended and Classic search modes. * Version 0.4.3 diff --git a/fetlife-age-sex-location-search.user.js b/fetlife-age-sex-location-search.user.js index dff008b..f020c71 100644 --- a/fetlife-age-sex-location-search.user.js +++ b/fetlife-age-sex-location-search.user.js @@ -5,7 +5,7 @@ */ // ==UserScript== // @name FetLife ASL Search (Extened Edition) -// @version 0.4.4 +// @version 0.4.4.1 // @namespace http://maybemaimed.com/playground/fetlife-aslsearch/ // @updateURL https://github.com/meitar/fetlife-aslsearch/raw/master/fetlife-age-sex-location-search.user.js // @description Allows you to search for FetLife profiles based on age, sex, location, and role. @@ -685,7 +685,10 @@ FL_ASL.attachSearchForm = function () { html_string += ''; var newdiv = container.appendChild(FL_ASL.createSearchTab('fetlife_asl_search_extended', html_string)); // Google Chrome is far stricter about iframes, so just offer a pop-out instead, for now. - if (window.navigator.vendor.match(/Google/)) { + // And apparently, both Chrome and Firefox on Windows disallow this, too. So don't show + // the framed content to any Google Chrome users, or any user not on a Mac. + // This means only Firefox on Mac will show framed content. Ah well. C'est la vie. + if (window.navigator.vendor.match(/Google/) || !window.navigator.platform.match(/^Mac/)) { jQuery(newdiv).find('#fetlife_asl_search_extended_enlarge').remove(); jQuery(newdiv).find('#fetlife_asl_search_extended_cover').remove(); jQuery(newdiv).find('#fetlife_asl_search_extended_wrapper').html('

Open Extended A/S/L Search

').on('click', function () {