posts: remove AddThis widget.
AddThis apparently pulls in a script from z.moatads.com now. Fuck that.
This commit is contained in:
@@ -336,10 +336,6 @@ div#c-posts {
|
||||
li {
|
||||
padding: 0 1em 0 0;
|
||||
}
|
||||
|
||||
div.share a {
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.image-container {
|
||||
|
||||
@@ -67,8 +67,6 @@
|
||||
|
||||
window.Danbooru.notice = Danbooru.Utility.notice;
|
||||
window.Danbooru.error = Danbooru.Utility.error;
|
||||
|
||||
window.addthis_config = { ui_click: true };
|
||||
</script>
|
||||
|
||||
<%= tag.meta name: "description", content: meta_description %>
|
||||
|
||||
@@ -10,13 +10,6 @@
|
||||
<%= @post_set.presenter.tag_list_html(current_query: params[:tags], show_extra_links: policy(Post).show_extra_links?) %>
|
||||
</section>
|
||||
|
||||
<% if Danbooru.config.addthis_key.present? %>
|
||||
<section id="post-share">
|
||||
<h1>Share</h1>
|
||||
<%= render "posts/partials/index/share" %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<%= render "posts/partials/index/options" %>
|
||||
|
||||
<%= render "posts/partials/index/related", post_set: @post_set %>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"
|
||||
addthis:title="Find over <%= @post_set.post_count %> <%= @post_set.humanized_tag_string %> images on <%= Danbooru.config.app_name %>">
|
||||
<a class="addthis_button_twitter"></a>
|
||||
<a class="addthis_button_facebook"></a>
|
||||
<a class="addthis_button_reddit"></a>
|
||||
<a class="addthis_button_tumblr"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<%= Danbooru.config.addthis_key %>" async="async"></script>
|
||||
@@ -1,10 +0,0 @@
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"
|
||||
addthis:title="<%= post.presenter.humanized_essential_tag_string.html_safe %>">
|
||||
<a class="addthis_button_twitter"></a>
|
||||
<a class="addthis_button_facebook"></a>
|
||||
<a class="addthis_button_reddit"></a>
|
||||
<a class="addthis_button_tumblr"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=<%= Danbooru.config.addthis_key %>" async="async"></script>
|
||||
@@ -18,13 +18,6 @@
|
||||
<%= render "posts/partials/show/information", :post => @post %>
|
||||
</section>
|
||||
|
||||
<% if Danbooru.config.addthis_key.present? %>
|
||||
<section id="post-share">
|
||||
<h1>Share</h1>
|
||||
<%= render "posts/partials/show/share", post: @post %>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
<section id="post-options">
|
||||
<h1>Options</h1>
|
||||
<%= render "posts/partials/show/options", :post => @post %>
|
||||
|
||||
@@ -435,9 +435,6 @@ module Danbooru
|
||||
def twitter_site
|
||||
end
|
||||
|
||||
def addthis_key
|
||||
end
|
||||
|
||||
# include essential tags in image urls (requires nginx/apache rewrites)
|
||||
def enable_seo_post_urls
|
||||
false
|
||||
|
||||
Reference in New Issue
Block a user