מדיה ויקי:Common.js/externalsmaker.js – הבדלי גרסאות
Men770 שינה את מודל התוכן של הדף מדיה ויקי:Common.js/externalsmaker.js מ"קוד ויקי" ל"JavaScript": תיקון |
אין תקציר עריכה |
||
| שורה 25: | שורה 25: | ||
function getParameterByName(name) | function getParameterByName(name) | ||
{ | { | ||
var match = RegExp('[?&]' + name + '=([^&]*)') | var match = RegExp('[?&]' + name + '=([^&]*)') | ||
.exec(window.location.href); | .exec(window.location.href); | ||
| שורה 83: | שורה 82: | ||
] | ] | ||
}, | }, | ||
{ | { | ||
hostname: 'chabad.info', hrefmatch:/tag/, | hostname: 'chabad.info', hrefmatch:/tag/, | ||
| שורה 89: | שורה 87: | ||
{ str: 'קישור לתג באינפו' }, | { str: 'קישור לתג באינפו' }, | ||
{ telem: 'h2:first',remove:["Posts related to the tag '","': "] } | { telem: 'h2:first',remove:["Posts related to the tag '","': "] } | ||
] | |||
}, | |||
{ | |||
hostname: 'chabad.info', hrefmatch:/(.*)\/(.*)/, | |||
params: [ | |||
{ str: 'קישור חבד אינפו' }, | |||
{ telem: 'div.banner_category' }, | |||
{ str: location.pathname.split('/')[2]}, | |||
{ telem: '.div-post-ttl > h1:nth-child(1)'} , | |||
{ telem: '.single-author > div:nth-child(1)' }, | |||
{ telem: '.single-author > div:nth-child(2)' } | |||
] | ] | ||
}, | }, | ||
| שורה 365: | שורה 376: | ||
window.$ = jQuery; | window.$ = jQuery; | ||
var s=document.createElement('script'); | var s=document.createElement('script'); | ||
s.setAttribute('src',"http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); | s.setAttribute('src',"http:/"+"/ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); | ||
s.onload=wikiit; | s.onload=wikiit; | ||
try { | try { | ||