Difference between revisions 3789232 and 3789253 on simplewikiimportScript('User:LightForce/twinkle.js'); //Dokumentation auf [[:de:Benutzer:Schnark/js/specialinterwiki]] <nowiki> /*global mw: true */ (function($){ var specialinterwiki = { version: 1.4, default_target: 'de', go: function function addBeobachtungsliste() { var href = mw.config.get('wgScript') + '?title=' + $('#interwiki-input').val() + ':Special:' + mw.config.get('wgCanonicalSpecialPageName'); var search = window.location.search, hash = window.location.hash; search = search.replace(/^\?/, '&').replace(/&title=[^&]*/g, ''); //title entfernen var slash = decodeURIComponent(window.location.pathname); var index = slash.indexOf(mw.config.get('wgPageName').replace(/\/.*$/, '') + '/'); if (index > -1) { slash = encodeURIComponent(slash.substr(index + 1 + mw.config.get('wgPageName').replace(/\/.*$/, '').length)); href += '/' + slash; } window.location.href = href + search + hash; }, init: function () { var $tb = $('#p-tb'); if ($tb.length === 0) return; var $iw = $tb.clone().attr('id', 'p-lang').addClass('expanded').removeClass('collapsed'); $iw.find('.body').css('display', 'block'); $iw.find('h5').removeAttr('tabindex').text('Other languages'); $iw.find('ul').html('<li><input id="interwiki-input" size="5" value="' + specialinterwiki.default_target + '" />' + '<input id="interwiki-go" type="button" value=">"></li>'); $('#p-tb').after($iw); $('#interwiki-go').click(specialinterwiki.go); $('#interwiki-input').keypress(function (ev) { if (ev.which == 13) specialinterwiki.go(); }); } }; if (mw.config.get('debug')) window.specialinterwiki = specialinterwiki; $(document).trigger('loadWikiScript', ['Benutzer:Schnark/js/specialinterwiki.js', specialinterwiki]); if (mw.config.get('wgNamespaceNumber') == -1) $(specialinterwiki.init); })(jQuery); //</nowiki> addPortletLink("p-personal","http://de.wikipedia.org/wiki/Spezial:Beobachtungsliste" ,"Beobachtungsliste","pt-mycounter","Beobachtungsliste", "", document.getElementById('pt-logout')); } addOnloadHook(addEditCounter); importScript('User:Weltforce/lastactive.js'); TwinkleConfig = { revertMaxRevisions : 50, userTalkPageMode : 'tab', showSharedIPNotice : false, openTalkPage : [ 'vand' ], openTalkPageOnAutoRevert : false, summaryAd : " ([[WP:TW|TW]])", deletionSummaryAd : " (via [[WP:TW|TW]])", protectionSummaryAd : " (via [[WP:TW|TW]])", watchRevertedPages : [], markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ], watchSpeedyPages : [], deleteTalkPageOnDelete : false, watchWarnings : false, markAIVReportAsMinor : false, markSpeedyPagesAsMinor : true, offerReasonOnNormalRevert : true, }; importScriptURI('http://en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-ProveIt.js&action=raw&ctype=text/javascript'); // [[:en:User:ProveIt GT]] All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://simple.wikipedia.org/w/index.php?diff=prev&oldid=3789253.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|