Advertisement
Guest User

No Agenda Social's Mastodon Toot Bookmarklet

a guest
Feb 14th, 2022
20,194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. NAS New Toot Bookmarklet
  2.  
  3. Create a bookmarklet on your browser’s button bar.
  4. Call it Toot on NAS or NAS Toot, whatever helps you remember.
  5. And being a bookmarklet, paste this javascript in the url location field.
  6.  
  7. javascript:var%20d=document,w=window,f='https://noagendasocial.com/share',l=d.location,e=encodeURIComponent,p='?text='+e(d.title+"\n\n")+e(l.href),u=f+p;try{if(!/^(.*\.)?(xxx|x|xx)[^.]*$/.test(l.host))throw(0);}catch(z){a%20=function(){if(!w.open(u,'t','height=550,width=625,title=no,location=no,modal=yes,dependent=yes,status=1,scrollbars=yes,menubars=no,toolbars=no,resizable=yes'))l.href=u;};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();}void(0)
  8.  
  9. That's one long line and it begins with the word javascript:
  10. .open a browser tab and surf to some webpage, even google.com will do for a test.
  11. Press the button and the bookmarklet should pop up a small browser window on
  12. NoAgendaSocial.com’s share a new toot page with the page title and url preloaded in edit box.
  13.  
  14. Alternative copies to refer to in case this Paste expires
  15. ---------------------------------------------------------
  16. NAS New Toot Bookmarklet
  17. http://tinyurl.com/yxkjlaxa
  18. https://drive.google.com/open?id=18QNsteGvjNnK59-YkEN584nz6LPfEQnx
  19.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement