Estrogen is important in men, but too high of a level has all sorts of negative consequences – ranging from heart attacks to prostate cancer (32 & 33). The balance between testosterone and estrogen (or estradiol) is critical for a man. If the ratio is out and estrogen starts to dominate you run into all sorts of issues – such as breast cell growth, prostate enlargement and of course lower testosterone.

The largest amounts of testosterone (>95%) are produced by the testes in men,[2] while the adrenal glands account for most of the remainder. Testosterone is also synthesized in far smaller total quantities in women by the adrenal glands, thecal cells of the ovaries, and, during pregnancy, by the placenta.[126] In the testes, testosterone is produced by the Leydig cells.[127] The male generative glands also contain Sertoli cells, which require testosterone for spermatogenesis. Like most hormones, testosterone is supplied to target tissues in the blood where much of it is transported bound to a specific plasma protein, sex hormone-binding globulin (SHBG).
This summary is intended for general informational purposes only, and should not be interpreted as specific medical advice. The U.S. Food and Drug Administration does not strictly regulate herbs and supplements. There is no guarantee of purity, strength, or safety of the products. As a result, effects may vary. You should read product labels. In addition, if you are taking medications, herbs, or other supplements you should consult with a qualified healthcare provider before taking a supplement as supplements may interact with other medications, herbs, and nutritional products. If you have a medical condition, including if you are pregnant or nursing, you should speak to your physician before taking a supplement. Consult a healthcare provider if you experience side effects.
A 2010 study published in the journal Hormones and Behavior first suggested this when researchers evaluated the “dual-hormone hypothesis” clinically. (11) They discovered that when cortisol is elevated, testosterone responds by elevating as well but soon after bottoms out at a much lower level than before cortisol kicked in! That means you want to find ways to relieve stress to keep your testosterone levels up.
The changes in average serum testosterone levels with aging mean that the proportion of men fulfilling a biochemically defined diagnosis of hypogonadism increases with aging. Twenty percent of men aged over 60 have total testosterone levels below the normal range and the figure rises to 50% in those aged over 80. The figures concerning free testosterone are even higher as would be expected in view of the concurrent decrease in SHBG levels (Harman et al 2001).
On review of the patient’s history, he was found to have undergone laboratory tests before starting to use the aforementioned testosterone booster product. All blood parameters (testosterone hormone and full chemical profile) before product intake were in the normal range. A physical examination that included blood pressure and pulse assessments showed nothing out of the ordinary, and the man appeared to be in good condition before product consumption. After that medical checkup, the athlete began to consume the product for 42 continuous days divided into 2 cycles (each cycle comprised 24 days). The daily dose was a single pack of Universal Nutrition Animal Stak (ingredients are listed in Table 1), following the exact direction of the manufacturing company hoping to get the best results.
Yeah a lot of information has come out in the last decade or so proving that cholesterol is in fact good for you, and actually has no correlation to heart disease. But I think it will be a few more years until the world will shift such a strong belief that cholesterol is the enemy. If you are interested in this you should read grain brain. It talks all about (and proves) how high carbohydrates are actually the reason for “high cholesterol” and a high fat low carb diet is great for your body, and more importantly your brain.
Among the changes which occur with aging are those that affect several aspects of the endocrine system which reduces its secretions to varying degrees in different individuals. These reductions in secretions are identified by a poor but widely recognized appellation, the “pauses”: menopause (decreased ovarian function), adrenopause (decreased adrenal function, especially with regard to dehydroepiandrosterone secretion), somatopause (decreased growth hormone production), andropause (decreased hypothalamic-pituitary testicular function with diminished testosterone availability and impaired spermatogenesis) (Lamberts 1997).
Meat. Meat, particularly beef, provides our bodies with the protein it needs to create muscle (more muscle = more T) and the fats and cholesterol to make testosterone. My meat topping of choice was sliced up chuck steak. I grilled two of them on Monday and it lasted me until the next Monday. Every now and then I’d slow-cook some ribs or brisket to use as my meat topping. My philosophy was the fattier, the better.
Having low T is associated with decreased sex drive and less muscle mass, and one new study even found that lower levels of testosterone may raise the risk of depression. Fortunately, strength training spikes T, and living a healthy lifestyle also goes a long way toward keeping your levels topped off. But there are some completely natural compounds that can help as well.
Testosterone is used as a medication for the treatment of males with too little or no natural testosterone production, certain forms of breast cancer,[10] and gender dysphoria in transgender men. This is known as hormone replacement therapy (HRT) or testosterone replacement therapy (TRT), which maintains serum testosterone levels in the normal range. Decline of testosterone production with age has led to interest in androgen replacement therapy.[105] It is unclear if the use of testosterone for low levels due to aging is beneficial or harmful.[106]
The maximum hormone concentration in the blood is reported immediately after the workout. And the effect lasts throughout the day. However, it’s important to ensure that your physical activity is moderate. The matter is that too much high-intensity exercise can give an undesirable result. But even if for any reason you can’t attend a gym, it’s not a problem. Just move as much as possible during the day. Even simple walking will be of great benefit.
Men who produce more testosterone are more likely to engage in extramarital sex.[55] Testosterone levels do not rely on physical presence of a partner; testosterone levels of men engaging in same-city and long-distance relationships are similar.[54] Physical presence may be required for women who are in relationships for the testosterone–partner interaction, where same-city partnered women have lower testosterone levels than long-distance partnered women.[59]
As we age, the body undergoes multiple degenerative changes at multiple sites and in multiple systems. The changes of aging are inevitable and inexorable and represent the march toward ultimate death. We are mortal beings whose destiny it is to die. As we come to learn about the processes of life we can better prepare ourselves for the finality of death and on the way perhaps retard the degenerative process, or repair it (for however long we may enjoy this repair), or substitute chemical compounds that our bodies once produced in abundance, an abundance which fades with the advance of age.
The partial synthesis in the 1930s of abundant, potent testosterone esters permitted the characterization of the hormone's effects, so that Kochakian and Murlin (1936) were able to show that testosterone raised nitrogen retention (a mechanism central to anabolism) in the dog, after which Allan Kenyon's group[186] was able to demonstrate both anabolic and androgenic effects of testosterone propionate in eunuchoidal men, boys, and women. The period of the early 1930s to the 1950s has been called "The Golden Age of Steroid Chemistry",[187] and work during this period progressed quickly. Research in this golden age proved that this newly synthesized compound—testosterone—or rather family of compounds (for many derivatives were developed from 1940 to 1960), was a potent multiplier of muscle, strength, and well-being.[188]
ZMA (unnecessary). So when I researched how to increase testosterone, a supplement called ZMA kept popping up. It’s a blend of zinc, magnesium, and vitamin B6. The purported benefits of ZMA include better and deeper sleep which indirectly is supposed to increase testosterone. Zinc and magnesium are necessary minerals in testosterone production, so a mega-dose should be useful, right? Well, no. I bought some and took it during the duration of experiment. I should have done some more research before I made the purchase. While one study in 1998 showed increased strength among athletes taking ZMA, two recent studies (study 1, study 2) have shown that it has absolutely no effect on total or free testosterone levels. Crap. My advice, unless you have a zinc and magnesium deficiency, no need to waste your money on this.

Vitamin D deficiency is a growing epidemic in the US, and is profoundly affecting men’s health. The cholesterol-derived steroid hormone vitamin D is crucial for men’s health. It plays a role in the development of the sperm cell nucleus, and helps maintain semen quality and sperm count. Vitamin D can also increase your testosterone level, helping improve your libido. Have your vitamin D levels tested using a 25(OH)D or a 25-hydroxyvitamin D test. The optimal level of vitamin D is around 50 to 70 ng/ml for adults. There are three effective sources of vitamin D:


Ghlissi, Z., Atheymen, R., Boujbiha, M. A., Sahnoun, Z., Makni Ayedi, F., Zeghal, K., ... Hakim, A. (2013, December). Antioxidant and androgenic effects of dietary ginger on reproductive function of male diabetic rats [Abstract]. International Journal of Food Sciences and Nutrition, 64 (8), 974–978. Retrieved from https://www.ncbi.nlm.nih.gov/pubmed/23862759
It is important to note that you can certainly boost testosterone naturally without supplementation. Supplements are expensive now a days and a lot of people do not like taking tons of pills. Plus, a lot of these vitamins and minerals are only needed if deficient, so I recommend getting routine blood work done to see where you are short. I can almost guarantee you will come out vitamin D deficient, so while you don’t have to take these, they will certainly help.
The production of the stress hormone cortisol blocks the production and effects of testosterone. From a biological perspective, cortisol increases your “fight or flight” response, thereby lowering testosterone-associated functions such as mating, competing, and aggression. Chronic stress can take a toll on testosterone production, as well as your overall health. Therefore, stress management is equally important to a healthy diet and regular exercise. Tools you can use to stay stress-free include prayer, meditation, laughter, and yoga. Relaxation skills, such as deep breathing and visualization, can also promote your emotional health.

Muscletech Test HD is the anextreme testosterone supplement we've ever come across. By utilizing revolutionary, scientifically-proven all-natural testosterone boosting ingredients, Muscletech Test HD naturally and safely ignites testosterone levels to give you every benefit of healthy tetosterone levels. 1-Androboldiol is the perfect testosterone booster to help you add lean muscle mass, increase strength, reduce body fat, enhance sexual performance and increase energy.
Vitamin D, a steroid hormone, is essential for the healthy development of the nucleus of the sperm cell, and helps maintain semen quality and sperm count. Vitamin D also increases levels of testosterone, which may boost libido. In one study, overweight men who were given vitamin D supplements had a significant increase in testosterone levels after one year.5
Anabolic–androgenic steroids (AASs) are synthetic derivatives of testosterone that are commonly used among athletes aged 18–40 years, but many reports have demonstrated the presence of numerous toxic and hormonal effects as a result of long-term use of an AAS.[9] Testosterone-foods act as natural libido boosters. Due to the growing interest in herbal ingredients and other dietary supplements worldwide, the use of testosterone boosters is becoming more and more mainstream among athletes, but several side effects were documented. Hence, this study established to help in the assessment of the side effects and health risks which could occur among athletes consuming testosterone boosters.
Most people associate testosterone with facial hair, gigantic muscles & illegal steroids.  Naturally produced testosterone plays a very important role in male/female metabolic function.  Lowered testosterone is a chronic epidemic that is threatening lives all around the world.  This article will go over 12 ways to boost testosterone levels naturally through healthy lifestyle measures.
Researchers at Ball State University found that “strength training can induce growth hormone and testosterone release.” (6) Another study from the University of Nebraska Medical Center researched the acute effects of weight lifting on serum testosterone levels. (7) The results concluded that even moderate weight lifting and light weightlifting increased serum testosterone levels in participants.
This summary is intended for general informational purposes only, and should not be interpreted as specific medical advice. The U.S. Food and Drug Administration does not strictly regulate herbs and supplements. There is no guarantee of purity, strength, or safety of the products. As a result, effects may vary. You should read product labels. In addition, if you are taking medications, herbs, or other supplements you should consult with a qualified healthcare provider before taking a supplement as supplements may interact with other medications, herbs, and nutritional products. If you have a medical condition, including if you are pregnant or nursing, you should speak to your physician before taking a supplement. Consult a healthcare provider if you experience side effects.
It is a natural hormone present in the body known as Dehydroepiandrosterone (DHEA). It reduces the estrogen levels while boosting testosterone levels. It has been in use since so long to raise testosterone levels. Among all supplements, it is one of the famous and many researchers are working on it to tell how it stimulates testosterone production. It is banned for athletes and professional players.
Zaima, N., Kinoshita, S., Hieda, N., Kugo, H., Narisawa, K., Yamamoto, A., ... Moriyama, T. (2016, September). Effect of dietary fish oil on mouse testosterone level and the distribution of eicosapentaenoic acid-containing phosphatidylcholine in testicular interstitium. Biochemistry and Biophysics Reports, 7, 259–265. Retrieved from https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5613343/
The hormone also plays a role in sex drive, sperm production, fat distribution, red cell production, and maintenance of muscle strength and mass, according to the Mayo Clinic. For these reasons, testosterone is associated with overall health and well-being in men. One 2008 study published in the journal Frontiers of Hormone Research even linked testosterone to the prevention of osteoporosis in men.

Testosterone boosters are used by many athletes worldwide to achieve a significant muscle mass increase within a short period of time.[1] However; one cannot be completely confident in terms of the quality and efficacy of such products because of several reasons, such as the possibility of bad storage conditions and originating from an unreliable source. Over the years, some consumers of testosterone boosters have complained of kidney and liver abnormalities that could be linked to their use of boosters.[10] Cases of erroneous product administration have occurred in the past as athletes may not follow the instructions on the label fully, which can lead to many side effects.[11] In the present case, a man was admitted to a hospital because of a severe abdominal pain. The pain was later found to be caused by liver injury. The diagnosis confirmed that the levels of the key hepatic enzymes were markedly elevated. The medical complications observed were found to have occurred following the consumption of two courses of a commercial testosterone booster. According to researchers based in the US, about 13% of the annual cases of acute liver failure are attributable to idiosyncratic drug- and/or supplement-induced liver injury.[12] Marked increase in the levels of ALT, AST, and gamma-glutamyl transferase was observed after consuming the first course of the commercial testosterone booster, and they started to decline after the 2nd and 3rd course. This abruptly increases the levels of liver enzymes after the first course may be attributed to the interruption effect of commercial testosterone booster on liver function as a result of the effects of its ingredients.
In the hepatic 17-ketosteroid pathway of testosterone metabolism, testosterone is converted in the liver by 5α-reductase and 5β-reductase into 5α-DHT and the inactive 5β-DHT, respectively.[1][151] Then, 5α-DHT and 5β-DHT are converted by 3α-HSD into 3α-androstanediol and 3α-etiocholanediol, respectively.[1][151] Subsequently, 3α-androstanediol and 3α-etiocholanediol are converted by 17β-HSD into androsterone and etiocholanolone, which is followed by their conjugation and excretion.[1][151] 3β-Androstanediol and 3β-etiocholanediol can also be formed in this pathway when 5α-DHT and 5β-DHT are acted upon by 3β-HSD instead of 3α-HSD, respectively, and they can then be transformed into epiandrosterone and epietiocholanolone, respectively.[153][154] A small portion of approximately 3% of testosterone is reversibly converted in the liver into androstenedione by 17β-HSD.[152]
Testosterone is a male hormone. Hormones are chemical messengers that are secreted by the brain directly into the blood, which carries them to organs and tissues of the body to perform their functions. Testosterone is produced by the testicles, two oval organs that produce sperm in men. Dietary supplements help with increasing the levels of hormones if we have low levels in the body. In men, testosterone plays a key role in the development of male reproductive organs. In addition, it helps with increasing muscle mass, bone mass, and the growth of body hair. It is also good for general health and well-being. It also prevents loss of bone mass and density. Testosterone also helps maintain the sex drive and energy levels. Moreover, it helps with production of sperm and red blood cells. Testosterone levels start to fall with age. As a result, some men who have low testosterone levels may benefit from testosterone prescribed by their doctor. Testosterone booster supplements may also help.
This doesn’t mean Super Test is perfect — we take a closer look at some of its ingredients below — but it beats out the competition. Every other supplement we looked at either didn’t have all four ingredients, overdosed us on vitamins or minerals (a good way to develop kidney and liver problems), contained ingredients that would harm us, or some combination thereof.
Workouts lasting longer than about an hour may begin to spike cortisol levels and subsequently decrease testosterone. Additionally, research has demonstrated that a shorter rest period between sets (1 minute versus 3 minutes) elicited higher acute hormonal responses following a bout of resistance training.11 To maximize your testosterone response, keep your rest periods short and total workout time to 60 minutes or fewer.
Watch out for ingredients that interfere with blood clotting If you are taking any kind of blood medication, take aspirin or ibuprofen, or have any kind of blood-related condition, you’ll want to consult your doctor before taking any of these supplements. Fenugreek, Forskolin, and Acetyl-L-carnitine are just a few of the ingredients that can make these situations worse and increase your chances of bruising and bleeding.
Now you know I prefer studies conducted on human participants instead of rodents, but often there is no choice.  A Japanese study on rats that you can read here: http://jn.nutrition.org/content/131/8/2150.short has demonstrated pretty convincingly that garlic supplementation significantly increases testosterone.  I wish there were more tests on humans but it turns out garlic isn’t patentable (sorry Monsanto) which means there isn’t enough financial interest to warrant human studies.  Maybe I’ll conduct one.  Any volunteers?
Anabolic–androgenic steroids (AASs) are synthetic derivatives of testosterone that are commonly used among athletes aged 18–40 years, but many reports have demonstrated the presence of numerous toxic and hormonal effects as a result of long-term use of an AAS.[9] Testosterone-foods act as natural libido boosters. Due to the growing interest in herbal ingredients and other dietary supplements worldwide, the use of testosterone boosters is becoming more and more mainstream among athletes, but several side effects were documented. Hence, this study established to help in the assessment of the side effects and health risks which could occur among athletes consuming testosterone boosters.
We all remember the time during our teens where our body underwent majority of its changes that led us into adulthood. As far as testosterone levels go, this period of time is where the production of this hormone peaked. Testosterone levels during these teenage years remain high and consistent, and therefore it is not advisable to use a testosterone boosting supplement during this time. This is because, Natural Testosterone Boosters work by encouraging your body to increase it;s natural levels back to their maximum capacity. If your body is already producing it’s maximum amount of Testosterone, these products will be ineffective for you. You should be prioritising quality, intense training sessions with adequate nutrition, rich in protein and carbohydrates to elicit growth and repair.
Fenugreek is often found in Indian, Turkish, and Persian cuisine. Multiple studies have found it to improve testosterone levels, and in particular, sexual performance. Scientists at Babu Banarasi Das University and King George’s Medical University in India have found that fenugreek improved testosterone levels. Testosterone levels increased for 90% of the volunteers, sperm morphology (the size and shape of sperm) improved for 14.6%, and more than 50% of volunteers experienced improvements in mental alertness, mood, and libido.
Beast Sports recommends taking four capsules twice per day. The pills are about the same size as a multivitamin or a Tylenol liquid gel pill — not tiny tablets, unfortunately, but they aren’t horse pills. They smell like the boxes of raisins your Mom packed into your school lunch, but stale, like they were forgotten in the pantry for a few years, and a little spicy, like she sprinkled curry powder on them. If you follow this eight pills per day regime, your $46 bottle will last you twenty-two days, and cost you about $2 per day.
6., 7. JK, Udani, George AA, Musthapa M, Pakdaman MN, and Abas A. "Effects of a Proprietary Freeze-Dried Water Extract of Eurycoma Longifolia (Physta) and Polygonum minus on Sexual Performance and Well-Being in Men: A Randomized, Double-Blind, Placebo-Controlled Study." National Center for Biotechnology Information. U.S. National Library of Medicine, 12 Jan. 2014.

A study out of the University of Mary Hardin-Baylor in Belton, Texas, examined the effects of fenugreek supplementation on strength and body composition in resistance-trained men. Researchers found that while both the placebo and fenugreek groups significantly increased their strength during the first four weeks, only the fenugreek group saw significant increases in strength after eight weeks of training and supplementation.[5]
A large number of side-effects have been attributed to testosterone. In our clinical experience, the incidence of significant adverse effects with treatment producing physiological testosterone levels is low, and many side effects attributed to testosterone are mainly relevant to supraphysiological replacement. Some adverse effects are specific to a given mode of delivery and have already been described. Potential adverse effects concerning the prostate have also been discussed and require appropriate monitoring of symptoms, PSA and digital rectal examination. Other tumors which may be androgen responsive include cancer of the breast and primary liver tumors, and these are both contraindications to testosterone treatment

Prolactin is suppressed by dopamine activity. Since supplementing L-DOPA suppresses prolactin (by increasing dopamine activity), supplementing L-DOPA would increase testosterone if prolactin was abnormally high. The average, healthy male does not have elevated prolactin (unless he’s on steroids), so supplementing with L-DOPA will not increase your testosterone levels.

Preissner S, Kroll K, Dunkel M, Senger C, Goldsobel G, Kuzman D, Guenther S, Winnenburg R, Schroeder M, Preissner R: SuperCYP: a comprehensive database on Cytochrome P450 enzymes including a tool for analysis of CYP-drug interactions. Nucleic Acids Res. 2010 Jan;38(Database issue):D237-43. doi: 10.1093/nar/gkp970. Epub 2009 Nov 24. [PubMed:19934256]


Copyright © 2019 Leaf Group Ltd. Use of this web site constitutes acceptance of the LIVESTRONG.COM Terms of Use , Privacy Policy and Copyright Policy . The material appearing on LIVESTRONG.COM is for educational use only. It should not be used as a substitute for professional medical advice, diagnosis or treatment. LIVESTRONG is a registered trademark of the LIVESTRONG Foundation. The LIVESTRONG Foundation and LIVESTRONG.COM do not endorse any of the products or services that are advertised on the web site. Moreover, we do not select every advertiser or advertisement that appears on the web site-many of the advertisements are served by third party advertising companies.
Michael T. Murray, ND, is widely regarded as one of the leading authorities on natural medicine. He is the author of many books, including the classic Encyclopedia of Nutritional Supplements. His latest book is What the Drug Companies Won’t Tell You and Your Doctor Doesn’t Know. Visit him online at doctormurray.com.   Article Courtesy of Better Nutrition  

That said, keep in mind that using leucine as a free form amino acid can be highly counterproductive as when free form amino acids are artificially administrated, they rapidly enter your circulation while disrupting insulin function, and impairing your body's glycemic control. Food-based leucine is really the ideal form that can benefit your muscles without side effects.
While it would be nice to buy a testosterone pill from the local supplement store and have your testosterone levels go up, such a magic pill does not exist. As you can see from the above rundown, while a few supplements may be somewhat effective if your T levels are already low, none will significantly raise your testosterone above a baseline level. Thus, the basics of keeping your T levels high remain pretty simple:

Kostic TS, Stojkov NJ, Bjelic MM, Mihajlovic AI, Janjic MM, Andric SA: Pharmacological doses of testosterone upregulated androgen receptor and 3-Beta-hydroxysteroid dehydrogenase/delta-5-delta-4 isomerase and impaired leydig cells steroidogenesis in adult rats. Toxicol Sci. 2011 Jun;121(2):397-407. doi: 10.1093/toxsci/kfr063. Epub 2011 Apr 6. [PubMed:21427060]

Testosterone booster products obtained from trusted sources and administered as per the recommendations of the manufacturer may still present some health risks. The present case provided weak evidence of causality between acute liver injury and a commercial testosterone booster. To guarantee an optimal outcome with no severe side effects, further research is warranted to confirm the present findings and determine whether the effects observed in this case report would be statistically significant in larger samples.


$(function(){ SocialButtonRound_OnLoad(); }); function OpenPopup(a, b, c, d, e, f) { var g, h, i, j, k, l = ""; if (1 == e) if ("REST" == f.toUpperCase() ? (j = rest_width, k = rest_height) : (j = onet_width, k = onet_height), navigator.userAgent.toUpperCase().indexOf("OPERA") == -1 && navigator.userAgent.toUpperCase().indexOf("MAC") == -1 || (k += 15), document.all) { var m = "no"; d && (m = "yes"), h = 0, i = 0, j = screen.width, k = screen.height; var n = "fullscreen=yes"; g = window.open(a, l, n) } else { j += 20, h = 0, i = 0, j = screen.width, k = screen.height; var n = "fullscreen=yes"; g = window.open(a, l, n) } else if (document.all) { var m = "no"; d && (m = "yes"), h = (screen.width - b) / 2, i = (screen.height - c) / 2; var n = "left=" + h + ",top=" + i + ",width=" + b + ",height=" + c + ",menu=no,address=no,resize=no,scrollbars=" + m + ",titlebar=no,status=no"; g = window.open(a, l, n) } else { b += 20, h = (screen.width - b) / 2, i = (screen.height - c) / 2; var n = "left=" + h + ",top=" + i + ",width=" + b + ",height=" + c + ",menu=no,address=no,resize=no,status=no"; g = window.open(a, l, n) } return g } function SocialButtonRound_OnLoad() { try { addLinksToShareIcon(), generateShareCount(document.location.href), $("ul.social-icons > li > a").not("a.mailtolink").click(function (a) { a.preventDefault(), etafScrollPos = $(document).scrollTop(), window._vis_opt_queue = window._vis_opt_queue || [], window._vis_opt_queue.push(function () { _vis_opt_goal_conversion(243) }); var b = $(this).parent("li").attr("data-social-btn"), c = $(this).attr("href"); switch (b) { case "facebook": OpenPopup(c, 670, 340, !1, 0, ""); break; case "print": window.print(); break; case "chat": break; default: console.log("Unsupported data-social-btn type: " + b) } return !1 }) } catch (a) { } } function addLinksToShareIcon() { var a = window.location, a.indexOf("?") >= 0 && (a = a.substring(0, a.indexOf("?"))); a.indexOf("#") >= 0 && (a = a.substring(0, a.indexOf("#"))); $('ul.social-icons > li[data-social-btn="facebook"] > a').attr("href", "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(a)); } function generateShareCount(a) { a.indexOf("?") >= 0 && (a = a.substring(0, a.indexOf("?"))); a.indexOf("#") >= 0 && (a = a.substring(0, a.indexOf("#"))); if (a.indexOf("https://") > -1) { var b = encodeURIComponent(a); getFBCount(b) }; } function getFBCount(a) { $.ajax({ url: "https://graph.facebook.com/?fields=share&id=" + a, dataType: "jsonp", success: function (a) { a.share && ($("#shareCountContainer").val(Number($("#shareCountContainer").val()) + Number(a.share.share_count)), addToShareCountAndUpdate()) } }) } function addToShareCountAndUpdate() { if (!isNaN($("#shareCountContainer").val())) { var a = Number($("#shareCountContainer").val()); a >= 1e3 && (a = parseFloat((a / 1e3).toFixed(1)) + "K"), $("span[data-share-counter]").html(a) } }
×