Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/omgimalexis/anonbegone
https://github.com/omgimalexis/anonbegone
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/omgimalexis/anonbegone
- Owner: OmgImAlexis
- Created: 2014-03-28T00:38:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T02:44:07.000Z (over 7 years ago)
- Last Synced: 2024-10-14T07:54:00.123Z (about 1 month ago)
- Size: 8.79 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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";
}
}```