The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Anonym.to

2 posters

Go down

In progress Anonym.to

Post by Rhemsis December 1st 2012, 3:38 am

Members of my forum have requested that we implement the anonym.to site-wide.

If you navigate to anonym.to, you will find JavaScript code directly on their homepage that will allow you to 'anonymize' all of the links on your boards.

I copy/pasted the script from the homepage into a new JavaScript page which I entitled 'Anonym.to' via the ACP. This does not seem to have accomplished the desired outcome, as clicking on a hyperlink still redirects directly to the link rather than re-routing through anonym.to.

I was wondering if anyone had a similar problem, or if maybe I was going about this incorrectly.

For reference the JavaScript code I attempted to use is:

Code:
<script src="http://js.anonym.to/anonym/anonymize.js" type="text/javascript"></script>

<script type="text/javascript"><!--
protected_links = "";

auto_anonymize();
//--></script>

As well as the anonym.to homepage: http://anonym.to/ (scroll down a little to see the script, along with a link to 'detailed instructions' which mention implementation on vBulletin forums)
avatar
Rhemsis
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

In progress Re: Anonym.to

Post by SLGray December 1st 2012, 5:01 am

Try adding it to an announcement or a widget.


Anonym.to Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51481
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Anonym.to

Post by Rhemsis December 1st 2012, 5:25 am

Thanks for the reply.

I tried it out in the announcements, but it just showed the script (I made sure to enable HTML when entering the script) scrolling across the top of the boards. I played around with the scroll speed, and display settings to no avail.

Next I attempted the widget, but again it just displayed the pasted script (HTML was also enabled while entering the script).

Any other suggestions?

EDIT: I was playing around in the footer settings, and noticed that an option for NoFollow was available. After a quick Google search, I came upon this thread. It states that if my forum is set to 'Members Only' that the links are 'NoFollow'.

I had two questions regarding this:
1.) Is this information correct?
2.) Is NoFollow the same as anonym.to?
avatar
Rhemsis
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

In progress Re: Anonym.to

Post by SLGray December 1st 2012, 5:35 am

Do you have HTML activated for the whole forum?

Administration Panel > General > Messages & Emails > Configuration
Allow HTML: Yes


Anonym.to Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51481
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

In progress Re: Anonym.to

Post by Rhemsis December 1st 2012, 5:55 am

I did not have it enabled Embarassed

I enabled HTML as instructed above, and tried the three previous outlined methods (JavaScript Page/Announcement/Widget) to the same effect.

The JavaScript page seems to change nothing. The Announcement and Widget display the script with no effect.

EDIT (12/01/12): I was thinking about how this worked (detecting a hyperlink, and changing it to an anonym.to link) when I realized that forumotion has a feature similar to this that can be exploited for the purposes of anonym.to: Word Censoring

I'm still playing around with making all link prefix combinations compatible, but this is what I have so far:

ACP > General > Censoring > Word Censoring

Censoring http* and setting the modified word as: http://anonym.to/?http will anonymize all links that have a preceeding http://

Censoring www* will anonymize links that are simply www. links

I've only implemented the http* censoring as this allows links such as http://google.com to by anonymized as well as links such as http://www.google.com to be anonymized. I'm still working on a way to have the www* work alongside the http* censor. As of right now implementing both will screw up the combination (http://www.) links, and leave you with a long chain of anonym.to links that will redirect to nothing.

I'd still be interested in finding a way to implement the script, but this is a band-aid on the problem for anyone else interested in using this service.

EDIT (part deux): The above method works well, however it seems to disable any tags that require an http:// protocol (such as [img] and [youtube]). To address this problem, I replaced the above word censors with: ahttp* and awww*

This requires users to place an 'a' in front of any links they want to anonymize, and will work with all prefix combinations, while leaving the http:// dependent tags alone.
avatar
Rhemsis
New Member

Posts : 7
Reputation : 0
Language : English

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum