-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathITP.user.js
More file actions
18 lines (17 loc) · 739 Bytes
/
ITP.user.js
File metadata and controls
18 lines (17 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// ==UserScript==
// @name ITP
// @namespace http://thomshutt.com/greasemonkey
// @version 0.1
// @description Reminds you to use the ITP Amazon link
// @include http*://amazon.*
// @include http*://www.amazon.*
// @exclude http*://*amazon.*indietravel*
// @exclude http*://www.*.amazon.*
// @copyright 2013 Thom Shutt
// ==/UserScript==
var node = document.body;
var infoDiv = document.createElement('div');
infoDiv.style.width= "100%";
infoDiv.style.backgroundColor = "orange";
infoDiv.innerHTML = "<center>HAVE YOU USED A REFERRAL LINK?? If not, then click: <a href='http://www.indietravelpodcast.com/amazon'>http://www.indietravelpodcast.com/amazon</a></center>";
node.insertBefore(infoDiv, node.firstChild);