jQuery Plugin For Structuring SEO-Friendly URLs - UrlFriendlyBox.js

File Size: 6.48 KB
Views Total: 918
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Demo Download

More in this category...

View Recommended Plugins

TOP jQuery Plugins For 2024

Chrome, IE8+, FireFox, Opera, Safari #URL #URL Slug
jQuery Plugin For Structuring SEO-Friendly URLs - UrlFriendlyBox.js

Just another jQuery based slug generator that lets you generate SEO-friendly URLs from Latin chars with support for max length, custom separator, stop words removal, and much more.

How to use it:

1. Create an input field for the slug generator.

<input type="text" id="demo" value="" placeholder="Text to URL">

2. Place jQuery JavaScript library and the UrlFriendlyBox.js script at the bottom of the html page.

<script src="https://code.jquery.com/jquery-1.12.4.min.js" 
        integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" 
        crossorigin="anonymous">
</script>
<script src="UrlFriendlyBox.js"></script>

3. Activate the slug generator by calling the function UrlFriendlyBox on the input field.

$("#demo").UrlFriendlyBox();

4. Remove stop words from urls.

$("#demo").UrlFriendlyBox({
  lboStopWords:true
});

5. Specify the stop words.

$("#demo").UrlFriendlyBox({
  layStopWords: [ 
    "el","la","los","las","un","una","uno","unas","unos",
    "a","de","ante","bajo","cabe","con","contra","desde","durante","en","entre","hacia","hasta","mediante","para","por","según","sin","so","sobre","tras","versus","via",
    "yo","me","mi","nos","nosotros","nosotras","conmigo","te","ti","tu","os","ustedes","vos","vosotras","vosotros","contigo","ella","ellas","ellos","ello","lo","les","se","si",
    "aquellas","aquella","aquellos","aquel","esas","esa","esos","ese","esotra","esotro","esta","estas","estos","este","estotro","estotra","mia","mias","mio","mios","nuestra","nuestras",
    "nuestro","nuestros","suya","suyas","suyo","suyos","tuya","tuyas","tuyo","tuyos","vuestra","vuestras","vuestros","vuestro","algo","alguien","alguna","algunas","alguno","algunos","cualesquiera",
    "cualquiera","demas","mismas","misma","mismo","mismos","muchas","mucha","mucho","muchos","nada","nadie","ninguna","ningunas","ninguno","ningunos","otra","otro","otras","otros","poca","pocas","poco",
    "pocos","quienquier","quienesquiera","quienquiera","tanta","tantas","tanto","tantos","toda","todas","todo","todos","ultima","ultimas","ultimo","ultimos","varios","varias","adonde","como","cual","cuales",
    "cuando","cuanta","cuantas","cuanto","cuantos","donde","que","quien","quienes","cuya","cuyas","cuyo","cuyos"
  ]
});

6. Decide whether to show domain name at the beginning of the url.

$("#demo").UrlFriendlyBox({
  lstDomain: 'https://jqueryscript.net',
  lboDomain: true
});

7. Append strings to the url.

$("#demo").UrlFriendlyBox({
  lboAppend:true,
  lstAppend:"/plugins"
});

8. Specify the max number of characters.

$("#demo").UrlFriendlyBox({
  lnuMaxlength: 60
});

9. Specify the symbol to use as your title separator.

$("#demo").UrlFriendlyBox({
  lstSeparator: "-"
});

10. More configuration options with default values.

$("#demo").UrlFriendlyBox({

  // shows an option to remove strop words
  lboSelectStopWords: false,

  // option text
  lstLabelCheck: 'Remove Stop Words:',

  // special chars
  laySpecialCharacters: { 
    ą:"a",Ą:"A",ę:"e",Ę:"E",ó:"o",Ó:"O",ś:"s",Ś:"S",ł:"l",Ł:"L",
    ż:"z",Ż:"Z",ź:"z",Ź:"Z",ć:"c",Ć:"C",ń:"n",Ń:"N",č:"c",ď:"d",
    ň:"n",ř:"r",š:"s",ť:"t",Š:"S",Œ:"O",Ž:"Z",š:"s",œ:"o",ž:"z",
    Ÿ:"Y",ÿ:"y",µ:"U",À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Æ:"A",
    Ç:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ð:"D",
    Ñ:"N",Ò:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",
    Ý:"Y",ß:"s",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",æ:"a",ç:"c",
    è:"e",é:"e",ê:"e",ë:"e",ì:"i",í:"i",î:"i",ï:"i",ð:"o",ñ:"n",
    ò:"o",ô:"o",õ:"o",ö:"o",ø:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",
    '¥':"Y",'&':"and"
  },
  
});

This awesome jQuery plugin is developed by nitsugario. For more Advanced Usages, please check the demo page or visit the official website.

  • Prev: Animated Emoji Picker Plugin With jQuery - mb.emoticons
  • Next: Resize Text To Fit Max Number Of Lines - fontScaler

Most Popular In This Category:

  • Responsive WYSIWYG Text Editor with jQuery and Bootstrap - LineControl Editor 329915 views -
  • Minimal Rich Text Editor With jQuery And FontAwesome - RichText 126780 views -
  • jQuery WYSIWYG Rich Text Editor Plugin - Froala Editor 107373 views -
  • Base64 Decode and Encode Plugin - base64.js 53831 views -
  • Airport-Like Text Flip Animation with jQuery and CSS3 - splitFlap 42449 views -
  • jQuery Plugin To Translate Webpage In A Given Language - localizationTool 41298 views -
  • WYSIHTML5 - Simple and Beautiful Web Editor 37547 views -
  • Awesome Tag Cloud Plugin with jQuery and Html5 Canvas - awesomeCloud 37279 views -
  • Quill Rich Text Editor For Bootstrap 4 37233 views -
  • Facebook-like jQuery Scrollbar Plugin - slimScroll 32972 views -
  • More Popular Plugins

Get Free Updates

代做工资流水公司石家庄银行流水PS费用揭阳代做企业银行流水柳州流水制作汕头工资流水账单办理青岛制作流水单邢台代开房贷银行流水宁德代办房贷流水兰州企业贷流水图片房贷工资流水 图片宁德打贷款工资流水苏州制作背调银行流水宁德打签证工资流水泰安贷款银行流水代办青岛做个人流水金华银行流水PS公司开封办企业流水打印无锡自存流水开具苏州工资流水账单多少钱信阳做企业对私流水长春流水账单价格宁德个人工资流水 制作赣州查询企业贷流水银川查询企业银行流水宁德打工资代付流水铜陵银行流水电子版打印济宁查询自存流水遵义房贷工资流水 代办宜昌代办车贷银行流水宁波房贷银行流水 价格宜昌代做背调银行流水香港通过《维护国家安全条例》两大学生合买彩票中奖一人不认账让美丽中国“从细节出发”19岁小伙救下5人后溺亡 多方发声卫健委通报少年有偿捐血浆16次猝死汪小菲曝离婚始末何赛飞追着代拍打雅江山火三名扑火人员牺牲系谣言男子被猫抓伤后确诊“猫抓病”周杰伦一审败诉网易中国拥有亿元资产的家庭达13.3万户315晚会后胖东来又人满为患了高校汽车撞人致3死16伤 司机系学生张家界的山上“长”满了韩国人?张立群任西安交通大学校长手机成瘾是影响睡眠质量重要因素网友洛杉矶偶遇贾玲“重生之我在北大当嫡校长”单亲妈妈陷入热恋 14岁儿子报警倪萍分享减重40斤方法杨倩无缘巴黎奥运考生莫言也上北大硕士复试名单了许家印被限制高消费奥巴马现身唐宁街 黑色着装引猜测专访95后高颜值猪保姆男孩8年未见母亲被告知被遗忘七年后宇文玥被薅头发捞上岸郑州一火锅店爆改成麻辣烫店西双版纳热带植物园回应蜉蝣大爆发沉迷短剧的人就像掉进了杀猪盘当地回应沈阳致3死车祸车主疑毒驾开除党籍5年后 原水城县长再被查凯特王妃现身!外出购物视频曝光初中生遭15人围殴自卫刺伤3人判无罪事业单位女子向同事水杯投不明物质男子被流浪猫绊倒 投喂者赔24万外国人感慨凌晨的中国很安全路边卖淀粉肠阿姨主动出示声明书胖东来员工每周单休无小长假王树国卸任西安交大校长 师生送别小米汽车超级工厂正式揭幕黑马情侣提车了妈妈回应孩子在校撞护栏坠楼校方回应护栏损坏小学生课间坠楼房客欠租失踪 房东直发愁专家建议不必谈骨泥色变老人退休金被冒领16年 金额超20万西藏招商引资投资者子女可当地高考特朗普无法缴纳4.54亿美元罚金浙江一高校内汽车冲撞行人 多人受伤

代做工资流水公司 XML地图 TXT地图 虚拟主机 SEO 网站制作 网站优化