Skip to content

Instantly share code, notes, and snippets.

View kylewest's full-sized avatar

Kyle West kylewest

View GitHub Profile
<script type="text/javascript">
$(document).ready(function() {
if (window.location.hostname == "example.com") {
$("#logo img").attr('src', 'http://upload.wikimedia.org/wikipedia/en/0/0c/ITunes_11_Logo.png');
}
});
</script>
<p><a href="javascript:gotoshow()"><img border="0" height="250" name="slide" src="storage/slide1.jpg" style="border:1px solid black;" width="700" /></a>
<script>
var slideimages=new Array() var slidelinks=new Array() function slideshowimages(){ for (i=0;i<slideshowimages.arguments.length;i++){ slideimages[i]=new Image() slideimages[i].src=slideshowimages.arguments[i] } } function slideshowlinks(){ for (i=0;i<slideshowlinks.arguments.length;i++) slidelinks[i]=slideshowlinks.arguments[i] } function gotoshow(){ if (!window.winslide||winslide.closed) winslide=window.open(slidelinks[whichlink]) else winslide.location=slidelinks[whichlink] winslide.focus() }
//configure the paths of the images, plus corresponding target links
slideshowimages("storage/slide1.jpg","storage/slide2.jpg")
slideshowlinks("http://www.rovospeed.com","http://www.rovospeed.com")
//configure the speed of the slideshow, in miliseconds
var slideshowspeed=5000
<script type="text/javascript">
var skip = false;
var showAccountPopup = false;
if (/\/store\/account\/accountinfo/.test(location.pathname)) {
showAccountPopup = true;
} else if (/\/store\/account\/changepassword/.test(location.pathname)) {
showAccountPopup = true;
} else if (/\/store\/account\/checkout/.test(location.pathname)) {
showAccountPopup = true;
} else if (/\/store\/account\/forgotpassword/.test(location.pathname)) {
<script type="text/javascript">
$(document).ready(function() {
if ( !/hood|trunk|(hard top)/i.test($("h1").text()) ) {
var yourPriceLabel = $("#ctl00_MainContentPlaceHolder_YourPriceLabel");
if (yourPriceLabel.length) {
var itemPrice = parseFloat(yourPriceLabel.text().replace(/[^\d\.]+/g,""));
console.log(itemPrice);
if (itemPrice != NaN) {
// Replace "ENTER_YOUR_PRICE_HERE" with the starting price you want free shipping displayed. E.g. 150.00 or 123.45. Do NOT enter a dollar sign!
if (itemPrice >= 200) {
<script>
if(location.pathname != "/store/account/checkout.aspx"){a;
var crt_uid = 'a2a22e42d1ae506ef8b75d9ff325f03f';</script> <script aync defer src="//d37phj1nwbd0r1.cloudfront.net/assets/crt.min.js (http://d37phj1nwbd0r1.cloudfront.net/assets/crt.min.js)">
}
</script>
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://www.hometheaterhifi.com/components/com_obrss/assets/xsl/atom-to-html.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
<channel>
<title>SECRETS All Article Reviews</title>
<description/>
<link>http://www.hometheaterhifi.com/</link>
<lastBuildDate>Thu, 21 Aug 2014 14:53:10 +0000</lastBuildDate>
<generator>FeedCreator 1.8.3 (obRSS 1.9)</generator>
<atom:link href="http://www.hometheaterhifi.com/?option=com_obrss&amp;task=feed&amp;id=7:all-articles&amp;random=0.14686119463294744?random=0.4273858868982643" rel="self" type="application/rss+xml"/>
<script type="text/javascript">
$(document).ready(function(){
var url = "http://www.facebook.com/plugins/like.php?href=" + encodeURIComponent(document.URL) + "&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=true&amp;height=35&amp;appId=238460506354540"
$("#ctl00_MainContentPlaceHolder_YourPriceLabel").after("<iframe src='" + url + "' scrolling='no' frameborder='0' style='border:none; overflow:hidden; height:35px;' allowTransparency='true'></iframe>");
});
</script>
<script type="text/javascript">
$(document).ready(function(){
if ( /(clutch masters|name of other brand|name of 3rd brand)/i.test($("h1").text()) ) {
$("#ctl00_MainContentPlaceHolder_YourPriceLabel").text("Price too low to show.<br/> Add to Cart for Price");
}
});
</script>
<script type="text/javascript">
$(document).ready(function(){
if ( /(clutch masters)/i.test($("h1").text()) ) {
$("#ctl00_MainContentPlaceHolder_YourPriceLabel").text("Price too low to show.<br/> Add to Cart for Price");
}
});
</script>
#homepagefeatures {
background: red;
color: white;
}
#homepagefeatures h2 {
font-size:24px;
text-transform: uppercase;
padding: 20px 0 0 20px;
}
#homepagefeatures td {