From The iPhone Wiki
< User:Kirb
Revision as of 10:20, 18 May 2015 by Kirb (talk | contribs) (Kirb moved page User:Thekirbylover/skin.js to User:Kirb/skin.js without leaving a redirect: Automatically moved page while renaming the user "Thekirbylover" to "Kirb")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* User:thekirbylover's JS for The iPhone Wiki; feel free to use any or all of this
 * To use on your own PC: install Greasemonkey (Tampermonkey or Blank Canvas on Chrome)
 * and add a script that loads on and enter the following in the text box: 
 * importScript("User:thekirbylover/skin.js")

// Default preferences - set yours in the userscript
    debug:true, // debug logging (can be overridden with debug=true in URL)
    ajax:true, // ajax interface
    share:true // share button

        console.log("IW:Debug: logging turned on via debug=true parameter");
    var console="console" in window?console:{},_console=console,console.log=function(){
        arguments[0]="IW:Debug: "+arguments[0];
        return _console&&_console.log&&iphonewiki.debug?_console.log.apply(this,arguments):false;
        arguments[0]="IW:Warning: "+arguments[0];
        return console&&console.warn&&iphonewiki.debug?_console.warn.apply(this,arguments):false;
        arguments[0]="IW:Error: "+arguments[0];
        return console&&console.error&&iphonewiki.debug?_console.error.apply(this,arguments):false;
    console.log("beta theme javascript loading");
        console.log("loading history.js");
                    console.log("history.js loaded");
        console.log("loading share link");
        $("<li><a id=addthis_button class=addthis_button href='//'>Bookmark and Share</a></li>").appendTo("#p-tb ul");
        console.log("share link loaded");