மீடியாவிக்கி:Common.js

விக்கிசெய்தி இலிருந்து

குறிப்பு - சேமித்த பின்னர், நீங்கள் செய்த மாற்றங்களைக் காண்பதற்கு உங்கள் உலவியின் இடைமாற்று அகற்றப்பட வேண்டும்.

  • மொஸில்லா பயர்பாக்ஸ் / சபாரி: Shift+Reload, அல்லது Ctrl-F5 அல்லது Ctrl-R (⌘-R Mac ல்)
  • கூகிள் குரோம் Ctrl-Shift-R அழுத்தவும். (⌘-Shift-R Mac ல்) ;
  • இண்டர்நெட் எக்ஸ்ப்ளோரர்: Ctrl-Refresh அல்லது Ctrl-F5 ஐ அழுத்தவும்.
  • ஒபேரா: Tools → Preferences இல் இடைமாற்றை அகற்றவும்;
/* Any JavaScript here will be loaded for all users on every page load. */

//remove slash after replacing home page with this page பயனர்:mahir78/முதற் பக்கம்
//importStylesheet("மீடியாவிக்கி:common.css/" + wgPageName);
importStylesheet("மீடியாவிக்கி:common.css/முதற் பக்கம்");

importScript("MediaWiki:common.js/" + mw.config.get('wgPageName'));

 //Twitter/facebook etc. See [[template:Social bookmarks]]
 //makes stuff in id="social_bookmarks" open in new window
 //and dynamically re-writes links to twitter to shorten urls
var newSmallPopup = function(url) {
return (function () {
window.open(url, "_blank", "width=640,height=480,menubar,resizable,scrollbars,status,toolbar");
return false;
});
}
 
$(document).ready(function () {
var soc = document.getElementById('social_bookmarks');
if (soc) {
var links = soc.getElementsByTagName('a')
for (i=0;i<links.length;i++) {
if ( links[i].href.indexOf("http://twitter.com/?status") === 0) { /*isTwitter*/
links[i].href = "http://twitter.com/?status=" + encodeURIComponent("Look what I found on Wikinews: http://enwn.net/+" + mw.config.get('wgArticleId'));
//enwn.net is owned by ShakataGaNai
}
links[i].onclick = newSmallPopup(links[i].href);
}}});
"https://ta.wikinews.org/w/index.php?title=மீடியாவிக்கி:Common.js&oldid=43954" இலிருந்து மீள்விக்கப்பட்டது