Giter VIP home page Giter VIP logo

jreject's People

Contributors

akkuma avatar blusyn avatar bryanagee avatar chrismbarr avatar daneren2005 avatar entendu avatar jberlinsky avatar mchv avatar miketaylr avatar minijoomla avatar russellporter avatar vrnagy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jreject's Issues

Compatibility View Mode in IE

Hi All,

I had this issue that in compatibility mode the Browser Message Modal shows. Is that the plugin is design or how can i prevent that it will not show the Browser message in compatibility mode.

Thanks in advance.

Project unmaintained?

Seems like TurnWheel/jReject is unmaintained since Oct 2014:

  • no replies to issues
  • many open (unreplied) pull requests

Anybody knows of a maintained fork?

PS @BluSyn Maybe you could add a note to the README.me looking for a new maintainer

Defective mobile recognition (Android)

I noticed that some android browsers contain string "Version/X", e.g. "Mozilla/5.0 (Linux; Android 4.4.3; Galaxy Nexus Build/KTU84M) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/33.0.0.0 Mobile Safari/537.36"

This string gets mistaken as a chrome version and is rejected. (as Chrome 4 in my example).

The parsing mechanism should be aware of that and deal with it somehow (perhaps ignore it? I dont know what is that part used for.)

Restriction browser version.

Hello,
I do not understand how to limit the display window to release less than or equal to 10 firefox.
Well how not to display the window if it is not windows or mac?

Thank you for your help

Broken for IE11

The jquery browser plugin doesn't report any browser information for IE11, because
"msie" is no longer in the userAgent-

Browsers Incorrectly Detected

Opera 10+ and Chrome 10 are not being correctly identified. I'm sure the problem is with jquery.browser. Ultimately jquery browser needs to get updated and reworked. For instance, Opera should use window.opera.version() rather than relying on a regex.

MSIE flags for specific versions

Hi,
I'm wanting to use this plugin to reject IE <9.
The site in question is http://kurunjang.interactivedigitalmedia.net.au

I have the following code:

$(document).ready(function(){  
        $.reject({  
            reject: {  
                msie8: true,
                msie7: true
            } 
        })
    return false;   
    });  

But it doesn't work.
If I change it to msie: true it rejects all versions of IE, so everything else in the code must be correct. Any help to get this working would be greatly appreciated as I otherwise love the plugin. :)

incorrectly detecting firefox v10 for v1

with the newly released firefox v10, the jreject thinks it is firefox 1.
so if I have set

reject : {firefox1:true}

and enter the site with firefox 10,
the jreject appears with the outdated message...

Detecting Chrome 26 on iOS as `safari`

Using jReject 1.0.2 with jQuery 1.8.2.

The issue is that Chrome v26 on iOS seems to be detected as safari.

I have the following option when calling jReject:

reject: {
    // basically, just allow Chrome
    firefox: true,
    safari: true,
    msie: true,
    opera: true,
    konqueror: true,
    unknown: true,
}

When visiting that past with Chrome v26 on iOS, it gets rejected. The value for $.browser.name is set to safari.

IE9 not offer if windows xp

Hello,
This is a moment that I look for a script as simple and efficient.
I from my side start develop something, but is not very good in javascript I left.
That said, I did a test on the version of the OS to not offer download IE if the bone was Windows XP.
I think it might just be useful in your script, although I do not know or integrate.

var matches = window.navigator.userAgent.match(/Windows NT ([0-9].[0-9])/);
var windowsVersion = (matches.length == 2) ? parseInt(matches[1]) : false;
if(windowsVersion < 6)

IE9 can not be instaler on versions of Windows OS has lower 6.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724832%28v=vs.85%29.aspx

Cordially

z-index low?

Is there a reason the z-index is set so low? Would a pull request be welcome if I maxed it out?

[enhancement] Add missing bower.json.

Hey, maintainer(s) of TurnWheel/jReject!

We at VersionEye are working hard to keep up the quality of the bower's registry.

We just finished our initial analysis of the quality of the Bower.io registry:

7530 - registered packages, 224 of them doesnt exists anymore;

We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).

Sadly, your library TurnWheel/jReject is one of them.

Can you spare 15 minutes to help us to make Bower better?

Just add a new file bower.json and change attributes.

{
  "name": "TurnWheel/jReject",
  "version": "1.0.0",
  "main": "path/to/main.css",
  "description": "please add it",
  "license": "Eclipse",
  "ignore": [
    ".jshintrc",
    "**/*.txt"
  ],
  "dependencies": {
    "<dependency_name>": "<semantic_version>",
    "<dependency_name>": "<Local_folder>",
    "<dependency_name>": "<package>"
  },
  "devDependencies": {
    "<test-framework-name>": "<version>"
  }
}

Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.

NB! Please validate your bower.json with jsonlint before commiting your updates.

Thank you!

Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!

IE9 not detected anymore

I have IE 9.0.8112.16421
updates 9.0.14

and suddenly jreject stopped detecting IE9.

Anyone had the same issue? What to do?

Firefox 3.0 not rejected

I'm using jReject v.1.1.0 and it doesn't reject Firefox 3.0. I've also tested with Firefox 3.1 and 3.6, these versions are rejected.
My configs:


function rejectOldBrowsers() {
                        $.reject({
                                reject: {
                                        msie: 8,
                                        safari: 5,
                                        opera: 12,
                                        firefox: 3.6,
                                        chrome: 18
                                },
                                header: MSG_headline,
                                paragraph1: MSG_description_1,
                                paragraph2: MSG_description_2,
                                closeMessage: MSG_close_description,
                                closeLink: MSG_close,
                                closeURL: MSG_close_url,
                                imagePath: MSG_image_path,
                                browserInfo: {
                                        chrome: {
                                                text: MSG_chrome,
                                                url: MSG_chrome_url
                                        },
                                        firefox: {
                                                text: MSG_firefox,
                                                url: MSG_firefox_url
                                        },
                                        safari: {
                                                text: MSG_safari,
                                                url: MSG_safari_url
                                        },
                                        opera: {
                                                text: MSG_opera,
                                                url: MSG_opera_url
                                        },
                                        msie: {
                                                text: MSG_ie,
                                                url: MSG_ie_url
                                        }
                                }
                        }); // Customized Browsers
                }

Please have a look at this issue. Thanks!

IE8: Error on page.

Nice... but Internet Explorer 8 fails to load this javascript.
lljpp

Webpage error details:

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; chromeframe/28.0.1500.95; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; InfoPath.2)
Timestamp: Wed, 21 Aug 2013 08:18:30 UTC

Message: Script error
Line: 0
Char: 0
Code: 0
URI: http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js

Message: 'jQuery' is undefined
Line: 10
Char: 1
Code: 0
URI: http://domain.nl/jreject/js/jquery.reject.js

Message: Object expected
Line: 107
Char: 2
Code: 0
URI: http://domain.nl/jreject/doc.html

Message: Object expected
Line: 417
Char: 3
Code: 0
URI: http://domain.nl/jreject/doc.html

jQuery.browser + JQuery 1.10.2

I am aware this has been covered before, however, I am unsure why I am getting this Firebug console error when using jquery.reject.min.js file downloaded today. Based on my reading of the previous reported issue, I was of the understanding this issue was fixed in the current release. On this basis I am opening this issue.

I am using Jquery 1.10.2 in conjunction with Jquery-migrate 1.2.1 (uncompressed version so console logging works)

It just plain doesn't work.

I tried Firefox 8 and Chrome 16 on the demos in the site. It does something with the bottom of the page, which totally messes it up.

Cannot use it at all :S.

NuGet Package

Wondering if you would consider creating a NuGet package to make this easier to install/update

separate jReject detection features

So this isn't much an issue but a request but, I recently used jReject on a project and I love their browser detection feature where the added the info to the html class. This along with modernizr is amazing. I had another project where I'm actually using the jreject for just that reason. I'd love to see a light way stripped version that all it does is detect browser and adds those classes to the html tag.

Could it be better to delegate icon work to CSS ?

I think it should be better if there's an option to custom whether to style icon using JS (like $(element).css() ) or should it be done by CSS. It also good for designer(stylesheet composer) too.

Update tag 1.1.0

Can you please update the tag for version 1.1.0? Bower uses an old version (trailing comma). Thank you.

incorrectly rejecting FF4 and not IE6...

I was looking to use this to sniff out FF3 and IE6 ONLY and it's not working at all for IE6 and when I tell it only to reject FF3, it's rejecting FF4 as well. Anyone have a fix for this?

can not enable safari mobile from ipad (works for iphone but not ipad)

hello,

I use your plugin to block access on customers admin panel because I don't want them to work with IE anymore (too much work to make everything work only for IE...).
So IE is blocked.
I use the iphone option and this one is ok if I access the admin panel with an iphone, but my problem is that I can't use my panel with safari mobile for ipad (I use the new ipad / ipad 3). Tried all I could but still no result.

Do you have a workaround to enable safari mobile browser on ipad ?

Thanks in advance,

Olivier

PS : I use jreject 1.0.0 & jquery 1.7.1

Firefox for iOS get rejected

FF iOS agent string

iPod:
Mozilla/5.0 (iPod touch; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4
iPhone:
Mozilla/5.0 (iPhone; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4
iPad:
Mozilla/5.0 (iPad; CPU iPhone OS 8_3 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) FxiOS/1.0 Mobile/12F69 Safari/600.1.4

Browser support 'rules'

I want to reject all browsers by default, configuring specific browsers to be rejected only if the version is lower than that specified in the reject { ... } configuration.

I've tried a few ways of doing this, for example - reject: { all: true, chrome: 34 } - to indicate that chrome 35 and above is good, everything else is not, but this doesn't work. I've also tried reject: { unknown: true, chrome: 34 } but this doesn't work either.

It seems that by default if jreject is aware of a browser by name, you must explicitly name it in the reject block for it to be rejected at all (unless of course you specify 'all: true' which then blocks everything regardless of other reject entries).

So am I missing something, or is something broken, or is this a potential feature request?

how to detect jReject is called or not?

I have added the jquery + jquery.reject.js + jquery.reject.css .
And I have set reject: {all: true}, // Reject all renderers for demo
But seems it is not working at all...
How can I see what is the issue over here?
I am not getting any error/warning in firebug + I have checked that all files are loaded perfectly.

Chrome 10

I'm getting rejected on Chrome 10.

My rejection configuration is:

reject: { // Rejection flags for specific browsers  
    all: false,
    msie5: true,
    msie6: true,
    msie7: true,

    firefox1: true,
    firefox2: true,

    chrome1: true,
    chrome2: true,
    chrome3: true,

    konqueror1: true,
    konqueror2: true,

    safari1: true,
    safari2: true,
    safari3: true,

    opera7: true,
    opera8: true,
    opera9: true
},  

iOS7 Homescreen - Safari true, iphone true is ignored - see reject popup

Add your web site to Home Screen and see reject message pop up with safari and iphone set to false (do not reject these).

User Agent may have changed on Home Screen Web Apps. Using http://www.whatismybrowser.com/ on Home Screen the browser is Unknown.

still see the reject popup with these settings:

reject: {
iphone: false, ipad: false,
unknown: false, // Everything else - iOS 7 homescreen comes up unknowns
safari1: true, safari2: true, safari3: true, // Apple Safari < 4
chrome14: true, chrome15: true, chrome16: true, chrome17: true,
chrome18: true, chrome19: true, chrome20: true, chrome21: true, chrome22: true,
chrome23: true, chrome24: true, chrome25: true, chrome26: true, // Google Chrome < 27
firefox14: true, firefox15: true, firefox16: true, firefox17: true,
firefox18: true, firefox19: true, firefox20: true, firefox21: true, firefox22: true,
firefox23: true, // Mozilla Firefox < 24
msie6: true, msie7: true, msie8: true, // Microsoft Internet Explorer < 9
//chrome:true, //testing
opera: true, // Opera
konqueror: true, // Konqueror (Linux)
linux: true, solaris: true,
},

We may need to wait until iOS7 update before addressing this issue

IE7 - non-functioning; script error

jReject is currently broken in IE7.

Symptoms: a script error (in typical old-IE fashion it is terse and difficult to see exactly where the issue lies)

Steps to reproduce: View any jReject site in IE7 that has IE7 rejection enabled. The jReject demos page has the problem.

Update: the problem goes away when the script is compressed. Whitespace issue maybe? IE7 can sometimes is a bit weird about line-breaks and such when declaring lists of variables.

Cannot recognize IE 11

I applied the last patch for compatibility with IE11 but it seems like the browser is recognized as Internet Explorer 9. Has anyone the same issue? I got that version string contains msie trident but version is shown as 9.0.

css in javascript.

It's good to remove all style attached from JavaScript and add it to CSS file. Like background on list item of recommended browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.