Giter Site home page Giter Site logo

browserhacks's People

Contributors

edwinm avatar evanhahn avatar fweinb avatar jeffclayton avatar joshnh avatar kittygiraudel avatar mobilpadde avatar phistuck avatar timpietrusky 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  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

browserhacks's Issues

Optimize performance

Kind of slow right now. Let's try to make the beast faster.

  1. How do we manager images (avatars)? There are a bunch of them, should we make a sprite and use background-image instead of ?
  2. PageSpeed Insights doesn't seem to see any gzipped content. However http://gzipwtf.com/ says the .css file is properly gzipped. Mystery to be solved.
  3. main.js should probably be minified.

Handle "+" and "-" in browser version

Example: Firefox 3.5+

The version of a hack is 3.5+. So when you search for 5, the expected result would be every hack with version 5 and all hacks with version 3.5.

Currently there is no result for Firefox 5.

Handle "no result" in search

Display something nice:

  • Funny message
  • "404 Not found" - something
  • Emoticon
  • <your suggestion here?>
  • Ban tim's ip

Further testing

We need to know more about which versions of Safari are hacked by:

::made-up-pseudo-element, .selector {}

Safari 6: to be tested.
Safari 5: OK.
Safari 4: to be tested.
Safari 3: to be tested.
Safari 2: to be tested.

Add Google Analytics

I created a new account for BH which needs to be added before we go live. I will give full access to 4ae9b8 members.

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-38522111-1']);
  _gaq.push(['_setDomainName', 'browserhacks.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

"Everything but..." hacks

I think hacks targeting "everything but..." should be considered as another whole thing. To be discussed.

Replace entypo with another icon font

entypo doesn't work properly on every device/browser/os combination. We should replace it with another Icon Fonts (e.g. Fontawesome or what ever you want)

Advanced search

Something with checkboxes would be great. Advices & comments welcome.

  • Add a "type" filter.

Change page background

Not much to say here. The background looks out of proportion and kinda blurry, there are tons of better ones, so I'd suggest changing it...

Working hacks first

From a UX perspective.. if I open the BH in a browser, I would first like to see all hacks that DO work in the browser I'm viewing, taking into consideration the version as well.. and maybe be given an option to see all hacks that don't work. Having to look for the hacks that doesn't work isn't nice UX.

For example I don't wanna have to keep scrolling down "looking for" hacks that worked. So it would be great, to kinda like FILTER the hacks for each browser: at top: the ones that work, at bottom: the ones that didn't work/match.

Hack fixing

Chrome 24-.

/* Safari (version?) and Chrome (not Canary) */
::made-up-pseudo-element, .selector { background: lightgreen; }

Add link to Twitter

Now we have a dedicated Twitter account, we should put a link to it on the home page.

Add a preview page

Would be nice to have a page like preview.browserhacks.com so that people can review the site and are not forced to git/server/what ever on their local machine.

Copy To Clipboard

What about a little "Copy to clipboard" button for each snippet? I don't know if it worth it. Any thought?

Searching for a number

Searching for a number should return either:

  • no result
  • hacks targeting a browser version equals of this number

Currently, searching for a number doesn't do anything.

New hacks

To be tested:

/* IE 10 */
(function() {
  "use strict";
  var tmp = (document["documentMode"] || document.attachEvent) && "ev",
       msie = tmp 
                  && (tmp = window[tmp + "al"])
                  && tmp("/*@cc_on 1;@*/")
                  && +((/msie (\d+)/i.exec(navigator.userAgent) || [])[1] || 0);
  return msie || void 0;
})();

Source JS: http://www.jquery4u.com/browsers-2/check-ie-version/
To be tested:

/* IE 10 */
navigator.msMaxTouchPoints

JavaScript hack "isSafari" not working on newer Safari.

On newer Safari versions /a/.__proto__ returns /(?:)/, the same for Google Chrome, Firefox and Opera. So doing that check will not tell if it is Safari.

Can't say if this will work on all versions of Safari (tested on 4.0.5 and 6.0.2) and on iOS (3.0, 4.0, 5.1, 6.0).

var isSafari = /Constructor/.test(window.HTMLElement);

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.