Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/omgimalexis/anonbegone


https://github.com/omgimalexis/anonbegone

Last synced: 29 days ago
JSON representation

Awesome Lists containing this project

README

        

Anon Be Gone
=========

This will force all anons to show their username instead of `"Anonymous"`

The new update doesn't require the /anon page and should work will all blogs.

Add this before the `` tag.
```html
window.jQuery || document.write('<script src="http://code.jquery.com/jquery-2.0.3.min.js">\x3C/script>')

{block:IfAnonBeGone}

$(document).ready(function() {
var ask_box = $('iframe#ask_form');
ask_box.attr('src', 'http://omgimalexis.github.io/AnonBeGone/');
});

{/block:IfAnonBeGone}
```

If you want people to be forced to login to use your ask use this code instead.
```html
window.jQuery || document.write('<script src="http://code.jquery.com/jquery-2.0.3.min.js">\x3C/script>')

var is_logged_in = function(){
{block:IfAnonBeGone}
$(document).ready(function() {
var ask_box = $('iframe#ask_form');
ask_box.attr('src', 'http://omgimalexis.github.io/AnonBeGone/');
});
{/block:IfAnonBeGone}
}

var is_logged_out = function(){
if ($('iframe#ask_form').length){
window.location.href = "http://tumblr.com/login";
}
}

```