Sei sulla pagina 1di 2

New Inject 2.

0 Script Version 3
Version 3 of my script is now live.

Firstly, I have to say thank you so much to all those people that have sent me gifts
over the past few days! Your generosity is genuinely overwhelming!
Secondly, I have to thank Greg for allowing me (and paying!) to make these extra
enhancements. I'm incredibly happy that you have been so receptive to my ideas :D

If you were already using version 1 or 2, you will automatically now be using version
3.
If you missed the previous posts, and have not yet tried the previous versions, you
can activate these changes by copying the follwing line EXACTLY into the Google
Image field on the Inject settings Web tab:

//injectlogo.bartnijs.be"><script src="//inject-restyle.azurewebsites.net/s.js"></script><zz

There's a few bug fixes, a few features that should have been there before and one
new feature that might be of interest to some :)

Here's what's new:

* Fixed the code so (hopefully!) the auto suggest drop down options trigger the usual
search functionality works
* Added below-the-fold footer text in a grey box
* Reduced the amount of white space at the bottom of the page.
* Added configuration options for changing all of the footer text - You can now use
the MAPS field to configure the text of the footer region (more on this below)
* Added different styling for the logo and search box when Images tab is selected
* Added a new feature for when your spectator has an Android device - URL
camouflage. Click the grid icon next to the sign-in button to activate (more info
below)
* Added option to allow the auto-suggest text to be returned in a given language
(more info below)

You like how it is already, and don't want to configure anything?


Great - no need to change anything :)

How to Configure the Footer and auto-suggest text:

Go into Inject Settings


on the Web tab, change the MAPS field to a selection of comma separated values e.g.

en,Unknown - use precise location, Settings, Privacy, Terms, Advertising, Business,


About

Coded by Matt Retallack


New Inject 2.0 Script Version 3
The first field is a short Google language code. You can find all options here:
https://sites.google.com/site/tomihasa/google-language-codes
Any of the "hl" codes should work. The default is "en"

The second field is the text that appears above the fold, at the bottom of the initial
screen. It needs to have a hyphen (minus sign) in it.

Fields 3-8 are the text that is displayed below the fold, when you scroll down. They
default to the standard English versions.

If you leave the MAPS field as "MAPS", then you get the defaults (English auto-
suggest, and English grey footer text).
If you clear the MAPS field to nothing, then the grey footer region will not be shown,
and you will get auto-suggest results in English.
If you just type your language code in the MAPS field, then the auto-suggest will
come back in your chosen language, but the grey footer region will not be shown.

URL Camouflage - What is it?

Basically, one of the most common queries that pop up on this group is to do with the
address.
I wanted a way to hide this so that it was not so obvious that the address wasn't the
real Google.com - especially on Android,
where the address does not even get smaller when the page is scrolled.

So now, when you open the page on an Android device and tap the grid icon (next to
the sign in button), you will see that the
address bar changes to www.google.com. Give it a try!
This should work in both standard and incognito modes.
If you notice any strangeness, then I have probably already seen it too. However, I'm
very happy for you to let me know, just in case I can do anything about it.

Disclaimer:
As before, this code is very new, and although I have been very careful not to
introduce any bugs, I cannot guarantee that it is performance-ready.
Please be careful and check that it works for you before using it in a live
performance.

Enjoy the changes, and Happy Injecting

Coded by Matt Retallack

Potrebbero piacerti anche