Wikipedia talk:WikiProject User scripts/Scripts/Revert tools: Difference between revisions
Content deleted Content added
Comments |
→Cross-skin support: new section |
||
Line 191:
I've been able to get my additions working on my test page, so the UW-functionality is in place. I have 9 different Warn tabs now, instead of the original 4, and all use the UW templates. Anyone is welcome to try out my script now though, and if there's support for it, we can add it here, or set up a new script page. Now the final thing I'd like to add is the PAGENAME function, but again, I have no idea how to do it! - [[User:BillCJ|BillCJ]] ([[User talk:BillCJ|talk]]) 03:49, 14 April 2008 (UTC)
== Cross-skin support ==
I just found this tool and it looks like exactly what I've been wanting.
I notice that as-is right now, not all skins are supported. I did some tinkering and found a small change that could be implemented to allow this script to work in any skin. If someone could check the change and implement it if there are no problems, I'd appreciate it. In the meantime, I've just pasted the code (with the change) to my personal javascript page for my chosen skin.
Here's the change:
<font color="red">'''WAS:'''</font> document.getElementById('contentSub').innerHTML
<font color="green"> '''IS:'''</font> document.getElementById('difference').innerHTML
...as it appears all skins have a '<code>difference</code>' id, but not all have a '<code>contentSub</code>' id.
-- [[User:BullWikiWinkle|<font color="red">'''B'''ull</font>]][[Special:Contributions/BullWikiWinkle|<font color="blue">'''W'''iki</font>]][[User_talk:BullWikiWinkle|<font color="darkgreen">'''W'''inkle</font>]] 05:30, 7 October 2008 (UTC)
|