public marks

PUBLIC MARKS from decembre with tags javascript & url

13 June 2018

URL - BOOKMARKLET - Up! - » Bookmarklets by Ben Alman

Up! is similar to the Google Toolbar’s “Up a Level” button, but works in a more “micro” scope. First any #anchor is removed, then any ?querystring, then any filename, then any folders (one at a time). After that, hostnames are removed, and when nothing else is left to remove, www. is prepended to the domain, for good measure! Here is a simple illustration of how a URL would change through iterations:

08 June 2018

JAVASCRIPT - URL - Javascript: document.url without the anchor (hash) portion - Stack Overflow

Specifying the first element worked for me: window.location=document.location.href.match(/(^[^#]*)/)[0]

decembre's TAGS related to tag javascript

ajax +   animation +   api +   article +   best +   bibliotheque +   blog +   bookmarklet +   browser +   carte +   checkbox +   code +   comment +   conversion +   convert +   css +   declaration +   demo +   design +   dev +   development +   documentation +   dom +   editeur +   editor +   example +   exemple +   extension +   fichier +   firebug +   firefox +   flash +   flickr +   FlickrSurf+ +   forum +   free +   function +   google +   greasemonkey +   guide +   hack +   howto +   htlm +   html +   iframe +   image +   interface +   java +   jQuery +   json +   lab +   library +   link +   liste +   maps +   ocr +   online +   online-tool +   opensource +   outil +   php +   player +   plugin +   programmation +   rechercher +   reference +   regex +   regexp +   Responsive +   ressource +   script +   scroll +   scrollbar +   selection +   site +   spip +   stackoverflow +   svg +   tag +   test +   text +   tips +   tool +   transform +   tuto +   tutorial +   tutoriel +   update +   user +   userscript +   utilitaire +   video +   web +   web2.0 +   webdesign +   webdev +   xhtml +   xml +   xpi +   xul +