|
Search this group's discussions
|
LM- und BM-Bookmarklets
|
So, es gibt nun zwei Möglichkeiten, einfacher bei LöschMich! abstimmen zu können.
Erste Möglichkeit (am einfachsten und schnellsten):
Wenn du Firefox oder Flock nutzt:
Schau hier vorbei!
Zweite Möglichkeit:
Du legst selbst zwei Lesezeichen an. Mit Rechtsklick auf die Lesezeichen kommst du dann zu "Properties" oder "Einstellungen". Hier kannst du dann die URL austauschen gegen folgende Scripts.
- Für LöschMich!:
javascript:(function(){DM_VOTE='löschmich';var gt=String.fromCharCode(62);var quote=unescape(String.fromCharCode(34));var squote=unescape(String.fromCharCode(39));function pausecomp(millis){date=new Date();var curDate=null;do {var curDate=new Date();}while(curDate-date<millis);}function eraseMe(){var arrComment=document.getElementsByTagName('textarea');var objTag=document.getElementById('addtagbox');var objTags=document.getElementById('thetags');var objForm=document.getElementById('tagadderform');var txtComment;var voteString;for(i=0;i<arrComment.length;i++){if(arrComment[i].name=='message'){txtComment=arrComment[i];break;}}if(!txtComment&&!objTag){alert('Bitte stell sicher, dass du dir das Foto ansiehst, bevor du abstimmst');return false;}else if(txtComment&&!objTag){alert('Dieser Teilnehmer hat taggen auf seinen Fotos deaktiviert');}if(objTags.innerHTML.indexOf(squote+DM_VOTE+'10'+squote)!=-1){alert('Dieses Foto hat bereits zehn Abstimmungen');return false;}else if(objTags.innerHTML.indexOf(squote+DM_VOTE+squote)!=-1){voteString=DM_VOTE+'2';}else{voteString=DM_VOTE;}for(j=9;j!=1;j--){if(objTags.innerHTML.indexOf(squote+DM_VOTE+j+squote)!=-1){voteString=DM_VOTE+(j+1);break;}}if(objTag)objTag.value=voteString;txtComment.value+='\n\n-angestimmt als '+quote+voteString+quote+' (von der <'+'a h'+'ref='+quote+'http://www.flickr.com/groups/loesch-mich'+quote+gt+'LöschMich! Gruppe<'+'/a'+gt+')';objForm.onsubmit();for(f=0;f<document.forms.length;f++){if(document.forms[f].innerHTML.indexOf('addcomment')!=-1){pausecomp(1000);document.forms[f].submit();break;}}return true;}var DM_oldCursor=document.body.style.cursor;document.body.style.cursor='wait';if(!eraseMe())document.body.style.cursor=DM_oldCursor})()
- für BehaltMich!:
javascript:(function(){DM_VOTE='behaltmich';var gt=String.fromCharCode(62);var quote=unescape(String.fromCharCode(34));var squote=unescape(String.fromCharCode(39));function pausecomp(millis){date=new Date();var curDate=null;do {var curDate=new Date();}while(curDate-date<millis);}function eraseMe(){var arrComment=document.getElementsByTagName('textarea');var objTag=document.getElementById('addtagbox');var objTags=document.getElementById('thetags');var objForm=document.getElementById('tagadderform');var txtComment;var voteString;for(i=0;i<arrComment.length;i++){if(arrComment[i].name=='message'){txtComment=arrComment[i];break;}}if(!txtComment&&!objTag){alert('Bitte stell sicher, dass du dir das Foto ansiehst, bevor du abstimmst');return false;}else if(txtComment&&!objTag){alert('Dieser Teilnehmer hat taggen auf seinen Fotos deaktiviert');}if(objTags.innerHTML.indexOf(squote+DM_VOTE+'10'+squote)!=-1){alert('Dieses Foto hat bereits zehn Abstimmungen');return false;}else if(objTags.innerHTML.indexOf(squote+DM_VOTE+squote)!=-1){voteString=DM_VOTE+'2';}else{voteString=DM_VOTE;}for(j=9;j!=1;j--){if(objTags.innerHTML.indexOf(squote+DM_VOTE+j+squote)!=-1){voteString=DM_VOTE+(j+1);break;}}if(objTag)objTag.value=voteString;txtComment.value+='\n\n-abgestimmt als '+quote+voteString+quote+' (von der <'+'a h'+'ref='+quote+'http://www.flickr.com/groups/loesch-mich'+quote+gt+'LöschMich! Gruppe<'+'/a'+gt+')';objForm.onsubmit();for(f=0;f<document.forms.length;f++){if(document.forms[f].innerHTML.indexOf('addcomment')!=-1){pausecomp(1000);document.forms[f].submit();break;}}return true;}var DM_oldCursor=document.body.style.cursor;document.body.style.cursor='wait';if(!eraseMe())document.body.style.cursor=DM_oldCursor})()
Viel Spaß!
Basierend auf dem Originalscript von aprevit.
Originally posted at 2:22AM, 29 February 2008 PDT
(permalink)
eljoergen edited this topic 52 months ago.
|
|
Gerade mal ausprobiert. Safari funktioniert auch, fügt aber keine Tags automatisch hinzu.
Update: nun auch alles auf Deutsch.
Posted 52 months ago.
(permalink)
|
|
Bitte benutzt doch beim taggen alle "löschmich" oder "behaltmich", mit den Abkürzungen lm und bm funktionieren die Skripts nicht.
Posted 52 months ago.
(permalink)
|
|
Hmm, also die "zieh es in deine Bookmarks" Variante funktioniert unter FF nich ordentlich?
Posted 52 months ago.
(permalink)
|
|
also bei mir funktioniert es. was funktioniert denn bei dir nicht?
Posted 52 months ago.
(permalink)
|
|
Ich gehe auf die Uniwave Seite, ziehe einen der Links in die Bookmark-Leiste, der verwandelt sich dann in "http://www.flickr.com/groups/loesch-mich%27+quote+gt+%27L"
Sprich, das ganze Javascript-Geraffel ist weg.
Ich habe die Nightly Build des FF3, daher vielleicht nicht überzubewerten...
Posted 52 months ago.
(permalink)
|
|
Ah ok. also ich hab es nur bis beta 3.0b3 ausprobiert.
Posted 52 months ago.
(permalink)
|
|
Ah, jetzt habe ich als Vollnoob es auch verstanden.
Posted 51 months ago.
(permalink)
|
Would you like to comment?
Sign up for a free account, or sign in (if you're already a member).
|
|