Skip to content
This repository has been archived by the owner on May 16, 2020. It is now read-only.

Commit

Permalink
Fixes #9: Uses Chrome-style linking to Extended Edition page on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabacab committed Jul 7, 2015
1 parent 8111e87 commit 754586c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions fetlife-age-sex-location-search.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -685,7 +685,10 @@ FL_ASL.attachSearchForm = function () {
html_string += '</div><!-- #fetlife_asl_search_extended_wrapper -->';
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('<h2><a href="#">Open Extended A/S/L Search</a></h2>').on('click', function () {
Expand Down

0 comments on commit 754586c

Please sign in to comment.