Skip to content

Instantly share code, notes, and snippets.

View ManuelBv's full-sized avatar

Manuel Cheța ManuelBv

View GitHub Profile
@ManuelBv
ManuelBv / Turkish so called hacker
Created May 11, 2013 07:07
What html code uses a given Turkish "Hacker" when he defaces sites
<script language="JavaScript1.2">
function ClearError() {return true;}
window.onerror = ClearError;
</script>
<title>Hacked By Tolga</title>
@ManuelBv
ManuelBv / bc-css-change
Created August 23, 2012 16:55
A simple CSS change for the Default BigCommerce template
<!-- custom styles code -insert in Panels/HTMLHead.html, right under the %%GLOBAL_RTLStyles%%
this code is for the Default (blue) - Version 6.5 template only -->
<style>
/* use 'body' to setup your own background image of the site */
body {
background: white url('../templates/default/images/blue/BodyBg.gif') repeat-x 0 0;
color: #535353;
}
@ManuelBv
ManuelBv / bcheadno
Created May 11, 2012 16:52
hardcoded head for title and description in bc stores
<title>My awesome title here | An I don't even know how bad it is to do this</title>
<meta http-equiv="Content-Type" content="text/html; charset=%%GLOBAL_CharacterSet%%" />
<meta name="description" content="This awesome hardcoded description will throw me in the SEO garbage can!" />
@ManuelBv
ManuelBv / bcheadok
Created May 11, 2012 16:48
the default code for title and description emta in BC store's head
<title>%%Page.WindowTitle%%</title>
<meta http-equiv="Content-Type" content="text/html; charset=%%GLOBAL_CharacterSet%%" />
<meta name="description" content="%%Page.MetaDescription%%" />
@ManuelBv
ManuelBv / robotsyes
Created May 11, 2012 16:40
default content in robots.txt for BC stores
User-agent: *
Disallow: /account.php
Disallow: /cart.php
Disallow: /checkout.php
Disallow: /finishorder.php
Disallow: /login.php
Disallow: /orderstatus.php
Disallow: /postreview.php
Disallow: /productimage.php
Disallow: /productupdates.php
@ManuelBv
ManuelBv / robotsno
Created May 11, 2012 16:38
Disallo all in robots.txt
User-agent: *
Disallow: /
@ManuelBv
ManuelBv / do not track no referrer visits
Created March 2, 2012 12:05
analytics to ignore no referrer visits in G Analytics - via SEO skunk
<!-- code idea from seoskunk - webmasters world: http://www.webmasterworld.com/profilev4.cgi?action=view&member=seoskunk -->
<script type="text/javascript">
if (document.referrer != '') {
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'YOURACCOUNT']);
_gaq.push(['_trackPageview']);
(function() {
@ManuelBv
ManuelBv / iframe bust
Created March 2, 2012 11:33
iframe bust - don't let anyone iframe your site in theirs
<script type="text/javascript">
window.onload = function()
{
try {var a = top.window.location.href;}
catch (err)
{
top.window.location = window.location;},'2000');
}
}
</script>