Fix/no adsense (#412)

* No adsense

* remove script tag
This commit is contained in:
William
2018-10-24 09:06:24 +11:00
committed by GitHub
parent b59fa15e00
commit dfffc3a268
7 changed files with 0 additions and 40 deletions

View File

@@ -133,7 +133,6 @@
"pako": "^1.0.6", "pako": "^1.0.6",
"prop-types": "^15.6.2", "prop-types": "^15.6.2",
"react": "^15.5.4", "react": "^15.5.4",
"react-adsense": "0.0.6",
"react-dom": "^15.5.4", "react-dom": "^15.5.4",
"react-extras": "^0.7.1", "react-extras": "^0.7.1",
"react-ga": "^2.5.3", "react-ga": "^2.5.3",

View File

@@ -1,7 +1,6 @@
import React from 'react'; import React from 'react';
import Page from './Page'; import Page from './Page';
import { CoriolisLogo, GitHub } from '../components/SvgIcons'; import { CoriolisLogo, GitHub } from '../components/SvgIcons';
import AdSense from 'react-adsense';
/** /**
* About Page * About Page
@@ -128,12 +127,6 @@ export default class AboutPage extends Page {
height="1" height="1"
/> />
</form> </form>
<AdSense.Google
client="ca-pub-3709458261881414"
slot="4156867783"
format="auto"
responsive="true"
/>
</div> </div>
); );
} }

View File

@@ -22,7 +22,6 @@ import {
LinkIcon LinkIcon
} from '../components/SvgIcons'; } from '../components/SvgIcons';
import ShortenUrl from '../utils/ShortenUrl'; import ShortenUrl from '../utils/ShortenUrl';
import AdSense from 'react-adsense';
import { comparisonBBCode } from '../utils/BBCode'; import { comparisonBBCode } from '../utils/BBCode';
const browser = require('detect-browser'); const browser = require('detect-browser');
@@ -622,12 +621,6 @@ export default class ComparisonPage extends Page {
</div> </div>
)) ))
)} )}
<AdSense.Google
client="ca-pub-3709458261881414"
slot="4156867783"
format="auto"
responsive="true"
/>
</div> </div>
); );
} }

View File

@@ -1,6 +1,5 @@
import React from 'react'; import React from 'react';
import Page from './Page'; import Page from './Page';
import AdSense from 'react-adsense';
/** /**
* 404 Page * 404 Page
@@ -25,12 +24,6 @@ export default class NotFoundPage extends Page {
return ( return (
<div className="page" style={{ marginTop: 30 }}> <div className="page" style={{ marginTop: 30 }}>
Page <small>{this.context.route.path}</small> Not Found Page <small>{this.context.route.path}</small> Not Found
<AdSense.Google
client="ca-pub-3709458261881414"
slot="4156867783"
format="auto"
responsive="true"
/>
</div> </div>
); );
} }

View File

@@ -23,7 +23,6 @@ import {
} from '../components/SvgIcons'; } from '../components/SvgIcons';
import LZString from 'lz-string'; import LZString from 'lz-string';
import ShipSummaryTable from '../components/ShipSummaryTable'; import ShipSummaryTable from '../components/ShipSummaryTable';
import AdSense from 'react-adsense';
import StandardSlotSection from '../components/StandardSlotSection'; import StandardSlotSection from '../components/StandardSlotSection';
import HardpointSlotSection from '../components/HardpointSlotSection'; import HardpointSlotSection from '../components/HardpointSlotSection';
import InternalSlotSection from '../components/InternalSlotSection'; import InternalSlotSection from '../components/InternalSlotSection';
@@ -1096,12 +1095,6 @@ export default class OutfittingPage extends Page {
opponentEng={opponentEng} opponentEng={opponentEng}
opponentWep={opponentWep} opponentWep={opponentWep}
/> />
<AdSense.Google
client="ca-pub-3709458261881414"
slot="4156867783"
format="auto"
responsive="true"
/>
</div> </div>
); );
} }

View File

@@ -6,7 +6,6 @@ import Ship from '../shipyard/Ship';
import * as ModuleUtils from '../shipyard/ModuleUtils'; import * as ModuleUtils from '../shipyard/ModuleUtils';
import { SizeMap } from '../shipyard/Constants'; import { SizeMap } from '../shipyard/Constants';
import Link from '../components/Link'; import Link from '../components/Link';
import AdSense from 'react-adsense';
/** /**
* Counts the hardpoints by class/size * Counts the hardpoints by class/size
@@ -614,12 +613,6 @@ export default class ShipyardPage extends Page {
</table> </table>
</div> </div>
</div> </div>
<AdSense.Google
client="ca-pub-3709458261881414"
slot="4156867783"
format="auto"
responsive="true"
/>
</div> </div>
); );
} }

View File

@@ -32,10 +32,6 @@
window.CORIOLIS_DATE = '<%- htmlWebpackPlugin.options.date.toISOString().slice(0, 10) %>'; window.CORIOLIS_DATE = '<%- htmlWebpackPlugin.options.date.toISOString().slice(0, 10) %>';
window.BUGSNAG_VERSION = '<%- htmlWebpackPlugin.options.version + '-' + htmlWebpackPlugin.options.date.toISOString() %>'; window.BUGSNAG_VERSION = '<%- htmlWebpackPlugin.options.version + '-' + htmlWebpackPlugin.options.date.toISOString() %>';
</script> </script>
<script async
src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
</script>
<% if (htmlWebpackPlugin.options.uaTracking) { %> <% if (htmlWebpackPlugin.options.uaTracking) { %>
<script> <script>
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;