Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==UserScript==
- ...
- @require http://ajax.googleapis.com/ajax/framework-of-your/choice.js
- ==/UserScript==
- // ==UserScript==
- // @name New Tab in phpBB3
- // @namespace http://robert.walkertribe.com/
- // @description Makes links in posts in phpBB3 boards open new tabs.
- // ==/UserScript==
- var newWin = function(ev) {
- var win = window.open(ev.target.href);
- if (win) ev.preventDefault();
- };
- var links = document.evaluate(
- "//div[@class='content']//a[not(@onclick) and not(@href='#')]",
- document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
- for (var i = 0; i < links.snapshotLength; i++) {
- var link = links.snapshotItem(i);
- link.addEventListener("click", newWin, true);
- }
- GM_setValue(keyname, value)
- http://mysite.com/logo.gif?zippyver=1.0
- http://mysite.com/logo.gif?zippyver=1.0
- var foo={people:['Bob','George','Smith','Grognak the Destroyer'],pie:true};
- GM_setValue('myVeryOwnFoo',uneval(foo));
- var fooReborn=eval(GM_getValue('myVeryOwnFoo','new Object()'));
- GM_log('People: '+fooReborn.people+' Pie:'+fooReborn.pie);
Add Comment
Please, Sign In to add comment