Author Topic: OURL- and cemete.ch- and ti-pla.net-shortening bookmarklet  (Read 3144 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
OURL- and cemete.ch- and ti-pla.net-shortening bookmarklet
« on: August 31, 2011, 10:56:57 am »
Code: [Select]
javascript:if((h=location.host).indexOf('omnimaga.org')+1){if(i=/topic=(\d+)/.exec(h=location.href)){i='http://ourl.ca/'+i[1];if(h=/msg(\d+)/.exec(location.search))i+='/'+h[1];prompt('',i+'/')}}else{i=[];i['cemetech.net']='cemete.ch';i['tiplanet.org']='ti-pla.net';if(i=i[h.slice((h.indexOf('www.')==0)*4)]){if(h=/(\w)=(\d+)$/.exec(location.search))prompt('','http://'+i+'/'+h[1]+h[2]+location.hash)}}void(0)
Save that as a bookmark, then use it on any thread here or any page on Cemetech for instant URL shortening.
« Last Edit: May 20, 2012, 11:26:40 am by Deep Thought »




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OmniURL- and cemete.ch-shortening bookmarklet
« Reply #1 on: August 31, 2011, 02:12:28 pm »
I would advise against any script that does that with OmniURL automatically on every single page, though, because often, Dot.tk is down or unresponsive, unlike cemete.ch.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OmniURL- and cemete.ch-shortening bookmarklet
« Reply #2 on: August 31, 2011, 03:00:32 pm »
Oh, that's a good point :/ Oh well. I'll use it as a bookmark for myself.




Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OmniURL- and cemete.ch-shortening bookmarklet
« Reply #3 on: May 19, 2012, 04:27:22 pm »
Updated to use OURL.ca, among other changes.




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: OURL- and cemete.ch-shortening bookmarklet
« Reply #4 on: May 19, 2012, 10:39:40 pm »
It would be nice in the future if on the site, there was an extra ezblock somewhere at the bottom of every page that automatically generated a short Omni URL of the page you are on. It could be a text area with a copy to clipboard button or link, with a link below to try it.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: OURL- and cemete.ch-shortening bookmarklet
« Reply #5 on: May 20, 2012, 08:51:14 am »
Also for each post, that somewhere in that post thingy is also the button for the short URL :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OURL- and cemete.ch-shortening bookmarklet
« Reply #6 on: May 20, 2012, 11:07:30 am »
Updated again to support TI-Planet's ti-pla.net :)

EDIT: Updated yet again to fix some bugs.
« Last Edit: May 20, 2012, 11:21:26 am by Deep Thought »




Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: OURL- and cemete.ch- and ti-pla.net-shortening bookmarklet
« Reply #7 on: May 20, 2012, 11:51:10 am »
nice, thanks :)

edit :

http://tiplanet.org/forum/archives_voir.php?id=4477

gets as : http://ti-pla.net/d4477

instead of  http://ti-pla.net/a4477

but looking at the code, it's only because it's not done :P
« Last Edit: May 20, 2012, 05:15:10 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: OURL- and cemete.ch- and ti-pla.net-shortening bookmarklet
« Reply #8 on: May 20, 2012, 02:07:58 pm »
Yeah, right now it only supports forums, topics, and posts. I might add more later.
« Last Edit: May 20, 2012, 02:08:06 pm by Deep Thought »